[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #5 from Anders Granlund anders.granlund.0 at gmail dot com --- *** Bug 66888 has been marked as a duplicate of this bug. ***

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #8 from Anders Granlund anders.granlund.0 at gmail dot com --- *** Bug 66901 has been marked as a duplicate of this bug. ***

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #10 from Anders Granlund anders.granlund.0 at gmail dot com --- Here comes two more test cases moved in from my related ICE on compile bug reports: namespace X { struct S; namespace Y { namespace Z = X; struct

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #7 from Anders Granlund anders.granlund.0 at gmail dot com --- (In reply to Jonathan Wakely from comment #4) So confirming as accepts-invalid with this testcase: class A; namespace Y { using ::A; class A { }; } Here

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #9 from Anders Granlund anders.granlund.0 at gmail dot com --- *** Bug 66878 has been marked as a duplicate of this bug. ***

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-26 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #6 from Anders Granlund anders.granlund.0 at gmail dot com --- *** Bug 66889 has been marked as a duplicate of this bug. ***

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-15 Thread anders.granlund.0 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #3 from Anders Granlund anders.granlund.0 at gmail dot com --- Thanks for the comments! Now I remember the following bug report that I sent to clang: https://llvm.org/bugs/show_bug.cgi?id=24030 That bug has now been confirmed and

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Keywords||accepts-invalid

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org --- (In reply to Anders Granlund from comment #0) Note that if we remove the member function definition in the given program it compiles without errors. I think that's the real bug.

[Bug c++/66879] Error message when defining a member function inside a class definition

2015-07-15 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66879 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org --- Clang compiles it OK, but EDG says: a.cc, line 5: error: class A cannot be defined in the current scope class A { void f() {} }; This seems similar to the G++ error, which is