[Bug c++/49896] New: undefined reference to static const integral member whose address is not used, for some values of the constant

2011-07-29 Thread matthieu.imb...@ens-lyon.fr
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: matthieu.imb...@ens-lyon.fr A static const int member is declared and initialized in a template class. Its value (not its address) is used in a method of

[Bug c++/49896] undefined reference to static const integral member whose address is not used, for some values of the constant

2011-07-29 Thread matthieu.imb...@ens-lyon.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49896 --- Comment #2 from Matthieu Imbert 2011-07-29 10:37:33 UTC --- (In reply to comment #1) > You lack a definition of test::version. C++ standard section 9.4.2 states: If a 'static' data member is of 'const' integral or 'const' enumeral type,

[Bug c++/49896] undefined reference to static const integral member whose address is not used, for some values of the constant

2011-07-29 Thread matthieu.imb...@ens-lyon.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49896 Matthieu Imbert changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID