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. ***
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. ***
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
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
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. ***
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. ***
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
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
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.
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
10 matches
Mail list logo