The following reproducer violates ISO/IEC 14882:2003 [14.3.2p1] class blah { int member; }; blah global; // global template <int param=global.member> class template_blah { /* blah */ };
Thanks, -=brandon=- -- Summary: gcc accepts the . dot operator in template arguments Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bbnickell at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39970