This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55436] g++ compiles invalid code with child class of nested class in template class
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Nov 2012 04:13:58 +0000
- Subject: [Bug c++/55436] g++ compiles invalid code with child class of nested class in template class
- Auto-submitted: auto-generated
- References: <bug-55436-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55436
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-11-22 04:13:58 UTC ---
Comeau online tester (which is EDG based) says:
"ComeauTest.c", line 20: error: a nonstatic member reference must be relative
to a
specific object
void x() { m(); }
^
detected during instantiation of "void A<T>::C::x() [with T=double]"
at line 33