This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13975] New: ICE on misplaced visibility specifier.
- From: "mattyt-bugzilla at tpg dot com dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2004 10:27:47 -0000
- Subject: [Bug c++/13975] New: ICE on misplaced visibility specifier.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Here's a "reduced test case" in the true sense of the term. The code:
public:
causes this error:
test.cc:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
The code:
private:
gives a slightly different error:
test.cc:1: error: expected unqualified-id before "
Internal compiler error: Error reporting routines re-entered.
...
and protected works OK!
--
Summary: ICE on misplaced visibility specifier.
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mattyt-bugzilla at tpg dot com dot au
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13975