This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/55436] g++ compiles invalid code with child class of nested class in template class


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]