public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13975] New: ICE on misplaced visibility specifier.
@ 2004-02-02 10:27 mattyt-bugzilla at tpg dot com dot au
2004-02-02 14:30 ` [Bug c++/13975] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: mattyt-bugzilla at tpg dot com dot au @ 2004-02-02 10:27 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/13975] [3.4/3.5 Regression] ICE on misplaced visibility specifier.
2004-02-02 10:27 [Bug c++/13975] New: ICE on misplaced visibility specifier mattyt-bugzilla at tpg dot com dot au
@ 2004-02-02 14:30 ` pinskia at gcc dot gnu dot org
2004-02-03 4:34 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-02 14:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-02 14:30 -------
Confirmed, both of these ICE happens when trying to print out the error message.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-invalid-code
Known to fail| |3.4.0 3.5.0
Known to work| |3.3.1
Last reconfirmed|0000-00-00 00:00:00 |2004-02-02 14:30:12
date| |
Summary|ICE on misplaced visibility |[3.4/3.5 Regression] ICE on
|specifier. |misplaced visibility
| |specifier.
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13975
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/13975] [3.4/3.5 Regression] ICE on misplaced visibility specifier.
2004-02-02 10:27 [Bug c++/13975] New: ICE on misplaced visibility specifier mattyt-bugzilla at tpg dot com dot au
2004-02-02 14:30 ` [Bug c++/13975] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-02-03 4:34 ` mmitchel at gcc dot gnu dot org
2004-02-03 4:49 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-02-03 4:34 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13975
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/13975] [3.4/3.5 Regression] ICE on misplaced visibility specifier.
2004-02-02 10:27 [Bug c++/13975] New: ICE on misplaced visibility specifier mattyt-bugzilla at tpg dot com dot au
2004-02-02 14:30 ` [Bug c++/13975] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-02-03 4:34 ` mmitchel at gcc dot gnu dot org
@ 2004-02-03 4:49 ` pinskia at gcc dot gnu dot org
2004-02-03 8:26 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-03 4:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-03 04:49 -------
Note PR 13647 has a related testcase and I think the patch here will fix it: http://gcc.gnu.org/ml/gcc-
patches/2004-01/msg01173.html.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13975
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/13975] [3.4/3.5 Regression] ICE on misplaced visibility specifier.
2004-02-02 10:27 [Bug c++/13975] New: ICE on misplaced visibility specifier mattyt-bugzilla at tpg dot com dot au
` (2 preceding siblings ...)
2004-02-03 4:49 ` pinskia at gcc dot gnu dot org
@ 2004-02-03 8:26 ` pinskia at gcc dot gnu dot org
2004-02-03 16:12 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-03 8:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-03 08:26 -------
: Search converges between 2003-12-17-trunk (#479) and 2003-12-18-trunk (#480).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13975
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/13975] [3.4/3.5 Regression] ICE on misplaced visibility specifier.
2004-02-02 10:27 [Bug c++/13975] New: ICE on misplaced visibility specifier mattyt-bugzilla at tpg dot com dot au
` (3 preceding siblings ...)
2004-02-03 8:26 ` pinskia at gcc dot gnu dot org
@ 2004-02-03 16:12 ` cvs-commit at gcc dot gnu dot org
2004-02-03 16:53 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-03 16:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-03 16:12 -------
Subject: Bug 13975
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: mmitchel@gcc.gnu.org 2004-02-03 16:12:33
Modified files:
gcc : ChangeLog tree.c tree.h
gcc/testsuite/g++.old-deja/g++.robertl: eb125.C
gcc/cp : ChangeLog parser.c pt.c semantics.c
Added files:
gcc/testsuite/g++.dg/template: crash17.C koenig4.C
Log message:
PR c++/13975
* tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
TI_PRIVATE.
(access_public_node): Redefine.
(access_protected_node): Likewise.
(access_private_node): Likewise.
* tree.c (build_common_tree_nodes): Create access_public_node,
access_protected_node, and access_private_node.
PR c++/13978
* pt.c (build_non_dependent_expr): Do not build
NON_DEPENDENT_EXPRs for FUNCTION_DECLs or TEMPLATE_DECLs.
PR c++/13968
* semantics.c (finish_id_expression): Do not return an
IDENTIFIER_NODE when lookup finds a VAR_DECL.
PR c++/13975
* parser.c (cp_parser_simple_declaration): When skipping to the
end of the statement swallow the terminating semicolon.
PR c++/13978
* g++.dg/template/koenig4.C: New test.
PR c++/13968
* g++.dg/template/crash17.C: New test.
PR c++/13975
* g++.dg/parse/error13.C: New test.
* g++.old-deja/g++.robertl/eb125.C: Tweak error messages.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.136&r2=2.2326.2.137
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.342.2.1&r2=1.342.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.458&r2=1.458.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.old-deja/g++.robertl/eb125.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.6&r2=1.6.16.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.28&r2=1.3892.2.29
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.157.2.7&r2=1.157.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.816.2.7&r2=1.816.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.381.4.5&r2=1.381.4.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash17.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/koenig4.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13975
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/13975] [3.4/3.5 Regression] ICE on misplaced visibility specifier.
2004-02-02 10:27 [Bug c++/13975] New: ICE on misplaced visibility specifier mattyt-bugzilla at tpg dot com dot au
` (4 preceding siblings ...)
2004-02-03 16:12 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-03 16:53 ` cvs-commit at gcc dot gnu dot org
2004-02-03 16:54 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-03 16:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-03 16:53 -------
Subject: Bug 13975
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2004-02-03 16:53:28
Modified files:
gcc : ChangeLog tree.c tree.h
gcc/testsuite/g++.old-deja/g++.robertl: eb125.C
gcc/testsuite : ChangeLog
gcc/cp : ChangeLog parser.c pt.c semantics.c
Added files:
gcc/testsuite/g++.dg/template: crash17.C koenig4.C
Log message:
PR c++/13975
* tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
TI_PRIVATE.
(access_public_node): Redefine.
(access_protected_node): Likewise.
(access_private_node): Likewise.
* tree.c (build_common_tree_nodes): Create access_public_node,
access_protected_node, and access_private_node.
PR c++/13978
* pt.c (build_non_dependent_expr): Do not build
NON_DEPENDENT_EXPRs for FUNCTION_DECLs or TEMPLATE_DECLs.
PR c++/13968
* semantics.c (finish_id_expression): Do not return an
IDENTIFIER_NODE when lookup finds a VAR_DECL.
PR c++/13975
* parser.c (cp_parser_simple_declaration): When skipping to the
end of the statement swallow the terminating semicolon.
PR c++/13978
* g++.dg/template/koenig4.C: New test.
PR c++/13968
* g++.dg/template/crash17.C: New test.
PR c++/13975
* g++.dg/parse/error13.C: New test.
* g++.old-deja/g++.robertl/eb125.C: Tweak error messages.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2622&r2=2.2623
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&r1=1.344&r2=1.345
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&r1=1.459&r2=1.460
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.old-deja/g++.robertl/eb125.C.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3457&r2=1.3458
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3925&r2=1.3926
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.165&r2=1.166
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.825&r2=1.826
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.386&r2=1.387
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash17.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/koenig4.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13975
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/13975] [3.4/3.5 Regression] ICE on misplaced visibility specifier.
2004-02-02 10:27 [Bug c++/13975] New: ICE on misplaced visibility specifier mattyt-bugzilla at tpg dot com dot au
` (5 preceding siblings ...)
2004-02-03 16:53 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-03 16:54 ` cvs-commit at gcc dot gnu dot org
2004-02-03 16:57 ` mmitchel at gcc dot gnu dot org
2004-02-19 19:35 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-03 16:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-02-03 16:54 -------
Subject: Bug 13975
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: mmitchel@gcc.gnu.org 2004-02-03 16:53:57
Modified files:
gcc/testsuite : ChangeLog
Log message:
PR c++/13975
* tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
TI_PRIVATE.
(access_public_node): Redefine.
(access_protected_node): Likewise.
(access_private_node): Likewise.
* tree.c (build_common_tree_nodes): Create access_public_node,
access_protected_node, and access_private_node.
PR c++/13978
* pt.c (build_non_dependent_expr): Do not build
NON_DEPENDENT_EXPRs for FUNCTION_DECLs or TEMPLATE_DECLs.
PR c++/13968
* semantics.c (finish_id_expression): Do not return an
IDENTIFIER_NODE when lookup finds a VAR_DECL.
PR c++/13975
* parser.c (cp_parser_simple_declaration): When skipping to the
end of the statement swallow the terminating semicolon.
PR c++/13978
* g++.dg/template/koenig4.C: New test.
PR c++/13968
* g++.dg/template/crash17.C: New test.
PR c++/13975
* g++.dg/parse/error13.C: New test.
* g++.old-deja/g++.robertl/eb125.C: Tweak error messages.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.44&r2=1.3389.2.45
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13975
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/13975] [3.4/3.5 Regression] ICE on misplaced visibility specifier.
2004-02-02 10:27 [Bug c++/13975] New: ICE on misplaced visibility specifier mattyt-bugzilla at tpg dot com dot au
` (6 preceding siblings ...)
2004-02-03 16:54 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-03 16:57 ` mmitchel at gcc dot gnu dot org
2004-02-19 19:35 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-02-03 16:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-02-03 16:57 -------
Fixed in GCC 3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13975
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/13975] [3.4/3.5 Regression] ICE on misplaced visibility specifier.
2004-02-02 10:27 [Bug c++/13975] New: ICE on misplaced visibility specifier mattyt-bugzilla at tpg dot com dot au
` (7 preceding siblings ...)
2004-02-03 16:57 ` mmitchel at gcc dot gnu dot org
@ 2004-02-19 19:35 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-19 19:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-19 19:35 -------
*** Bug 14215 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |hans dot buchmann at fhso
| |dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13975
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-02-19 19:35 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-02 10:27 [Bug c++/13975] New: ICE on misplaced visibility specifier mattyt-bugzilla at tpg dot com dot au
2004-02-02 14:30 ` [Bug c++/13975] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-02-03 4:34 ` mmitchel at gcc dot gnu dot org
2004-02-03 4:49 ` pinskia at gcc dot gnu dot org
2004-02-03 8:26 ` pinskia at gcc dot gnu dot org
2004-02-03 16:12 ` cvs-commit at gcc dot gnu dot org
2004-02-03 16:53 ` cvs-commit at gcc dot gnu dot org
2004-02-03 16:54 ` cvs-commit at gcc dot gnu dot org
2004-02-03 16:57 ` mmitchel at gcc dot gnu dot org
2004-02-19 19:35 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).