PATCH: new flag to say when things are instantiated
Gabriel Dos Reis
gdr@codesourcery.com
Wed Nov 8 18:06:00 GMT 2000
Brendan Kehoe <brendan@zen.org> writes:
| I've found this feature to be particularly helpful in some situations. By
| making it possible for users to know precisely when the compiler is doing
| something for them, it can both help new C++ developers grasp the language
| better, and also help you know when seemingly obscure bugs happen due to a
| random instantiation you didn't know about.
Your proposed option might indeed be helpful in diagnostics about template.
I think the diagnostics should be more descriptive, insisting on the
fact that an instanciation is implicit or explicit. For function
templates and static data member of class templates, we should
distinguish between "declaration instanciation" and "definition
instanciation". According to standard terminology, it is technically
incorrect to speak of "variable instanciation".
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc-bugs
mailing list