public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26571] New: [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct
@ 2006-03-06 2:56 reichelt at gcc dot gnu dot org
2006-03-06 13:05 ` [Bug c++/26571] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-03-06 2:56 UTC (permalink / raw)
To: gcc-bugs
The invalid testcase
===============================
struct A {};
unsigned A a;
===============================
triggers the following bogus error message since GCC 3.4.0:
bug.cc:2: error: 'A' does not name a type
The error message before wasn't very helpful
bug.cc:2: error: syntax error before `;' token
but at least it wasn't plain wrong.
So I rate this as a regression.
--
Summary: [4.0/4.1/4.2 regression] Bad diagnostic using type
modifier with struct
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: diagnostic, monitored
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26571
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/26571] [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct
2006-03-06 2:56 [Bug c++/26571] New: [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct reichelt at gcc dot gnu dot org
@ 2006-03-06 13:05 ` pinskia at gcc dot gnu dot org
2006-03-11 3:22 ` 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 @ 2006-03-06 13:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-06 13:05 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Known to fail| |3.4.0 4.0.0 4.1.0 4.2.0
Known to work| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2006-03-06 13:05:49
date| |
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26571
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/26571] [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct
2006-03-06 2:56 [Bug c++/26571] New: [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct reichelt at gcc dot gnu dot org
2006-03-06 13:05 ` [Bug c++/26571] " pinskia at gcc dot gnu dot org
@ 2006-03-11 3:22 ` mmitchel at gcc dot gnu dot org
2006-06-04 18:00 ` mmitchel 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 @ 2006-03-11 3:22 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.3 |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26571
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/26571] [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct
2006-03-06 2:56 [Bug c++/26571] New: [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct reichelt at gcc dot gnu dot org
2006-03-06 13:05 ` [Bug c++/26571] " pinskia at gcc dot gnu dot org
2006-03-11 3:22 ` mmitchel at gcc dot gnu dot org
@ 2006-06-04 18:00 ` mmitchel at gcc dot gnu dot org
2006-09-06 0:12 ` jason at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-06-04 18:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from mmitchel at gcc dot gnu dot org 2006-06-04 17:59 -------
A very low-priority problem...
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26571
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/26571] [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct
2006-03-06 2:56 [Bug c++/26571] New: [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-06-04 18:00 ` mmitchel at gcc dot gnu dot org
@ 2006-09-06 0:12 ` jason at gcc dot gnu dot org
2006-09-06 5:28 ` jason at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-09-06 0:12 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2006-08-27 21:28:20 |2006-09-06 00:12:31
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26571
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/26571] [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct
2006-03-06 2:56 [Bug c++/26571] New: [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-09-06 0:12 ` jason at gcc dot gnu dot org
@ 2006-09-06 5:28 ` jason at gcc dot gnu dot org
2006-09-07 22:27 ` [Bug c++/26571] [4.0/4.1 " jason at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-09-06 5:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jason at gcc dot gnu dot org 2006-09-06 05:28 -------
Subject: Bug 26571
Author: jason
Date: Wed Sep 6 05:28:08 2006
New Revision: 116715
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116715
Log:
PR c++/26571
* parser.c (cp_parser_diagnose_invalid_type_name): Handle the case
where the name is a type used incorrectly.
Added:
trunk/gcc/testsuite/g++.dg/parse/typespec1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26571
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/26571] [4.0/4.1 regression] Bad diagnostic using type modifier with struct
2006-03-06 2:56 [Bug c++/26571] New: [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-09-06 5:28 ` jason at gcc dot gnu dot org
@ 2006-09-07 22:27 ` jason at gcc dot gnu dot org
2006-09-07 22:38 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-09-07 22:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jason at gcc dot gnu dot org 2006-09-07 22:27 -------
Subject: Bug 26571
Author: jason
Date: Thu Sep 7 22:27:01 2006
New Revision: 116763
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116763
Log:
PR c++/26195
* decl.c (make_rtl_for_nonlocal_decl),
(start_preparsed_function): Don't use lbasename on
input_filename when calling get_fileinfo.
* semantics.c (begin_class_definition): Likewise.
* lex.c (cxx_make_type): Likewise.
(handle_pragma_interface): Call get_fileinfo on input_filename,
not on the parameter to the directive.
PR c++/26696
* cvt.c (convert_to_void): Replace a subexpression with no side
effects with void_zero_node.
* tree.c (is_overloaded_fn): Look through COMPONENT_REF.
(get_first_fn): Ditto.
* decl.c (grokdeclarator): No need to look through COMPONENT_REF.
PR c++/26571
* parser.c (cp_parser_diagnose_invalid_type_name): Handle the case
where the name is a type used incorrectly.
PR c++/26671
* typeck.c (maybe_warn_about_returning_address_of_local): Look
through COMPONENT_REF and ARRAY_REF.
PR c++/26102
* name-lookup.c (do_class_using_decl): Try to find the base even
if bases_dependent_p.
* pt.c (type_dependent_expression_p): A USING_DECL is dependent.
PR c++/19809
* pt.c (tsubst_friend_function): Set DECL_INITIAL before pushdecl.
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/cvt.c
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/cp/lex.c
branches/gcc-4_1-branch/gcc/cp/name-lookup.c
branches/gcc-4_1-branch/gcc/cp/parser.c
branches/gcc-4_1-branch/gcc/cp/pt.c
branches/gcc-4_1-branch/gcc/cp/semantics.c
branches/gcc-4_1-branch/gcc/cp/tree.c
branches/gcc-4_1-branch/gcc/cp/typeck.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26571
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/26571] [4.0/4.1 regression] Bad diagnostic using type modifier with struct
2006-03-06 2:56 [Bug c++/26571] New: [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-09-07 22:27 ` [Bug c++/26571] [4.0/4.1 " jason at gcc dot gnu dot org
@ 2006-09-07 22:38 ` jason at gcc dot gnu dot org
2006-09-07 23:04 ` jason at gcc dot gnu dot org
2006-09-07 23:07 ` jason at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-09-07 22:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jason at gcc dot gnu dot org 2006-09-07 22:38 -------
Subject: Bug 26571
Author: jason
Date: Thu Sep 7 22:38:03 2006
New Revision: 116764
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116764
Log:
PR c++/26195
* decl.c (make_rtl_for_nonlocal_decl),
(start_preparsed_function): Don't use lbasename on
input_filename when calling get_fileinfo.
* semantics.c (begin_class_definition): Likewise.
* lex.c (cxx_make_type): Likewise.
(handle_pragma_interface): Call get_fileinfo on input_filename,
not on the parameter to the directive.
PR c++/26696
* cvt.c (convert_to_void): Replace a subexpression with no side
effects with void_zero_node.
* tree.c (is_overloaded_fn): Look through COMPONENT_REF.
(get_first_fn): Ditto.
* decl.c (grokdeclarator): No need to look through COMPONENT_REF.
PR c++/26571
* parser.c (cp_parser_diagnose_invalid_type_name): Handle the case
where the name is a type used incorrectly.
PR c++/26671
* typeck.c (maybe_warn_about_returning_address_of_local): Look
through COMPONENT_REF and ARRAY_REF.
PR c++/19809
* pt.c (tsubst_friend_function): Set DECL_INITIAL before pushdecl.
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/cvt.c
branches/gcc-4_0-branch/gcc/cp/decl.c
branches/gcc-4_0-branch/gcc/cp/lex.c
branches/gcc-4_0-branch/gcc/cp/parser.c
branches/gcc-4_0-branch/gcc/cp/pt.c
branches/gcc-4_0-branch/gcc/cp/semantics.c
branches/gcc-4_0-branch/gcc/cp/tree.c
branches/gcc-4_0-branch/gcc/cp/typeck.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26571
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/26571] [4.0/4.1 regression] Bad diagnostic using type modifier with struct
2006-03-06 2:56 [Bug c++/26571] New: [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-09-07 22:38 ` jason at gcc dot gnu dot org
@ 2006-09-07 23:04 ` jason at gcc dot gnu dot org
2006-09-07 23:07 ` jason at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-09-07 23:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jason at gcc dot gnu dot org 2006-09-07 23:04 -------
Fixed
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26571
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/26571] [4.0/4.1 regression] Bad diagnostic using type modifier with struct
2006-03-06 2:56 [Bug c++/26571] New: [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-09-07 23:04 ` jason at gcc dot gnu dot org
@ 2006-09-07 23:07 ` jason at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2006-09-07 23:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jason at gcc dot gnu dot org 2006-09-07 23:07 -------
now closed, too
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26571
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-09-07 23:07 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-06 2:56 [Bug c++/26571] New: [4.0/4.1/4.2 regression] Bad diagnostic using type modifier with struct reichelt at gcc dot gnu dot org
2006-03-06 13:05 ` [Bug c++/26571] " pinskia at gcc dot gnu dot org
2006-03-11 3:22 ` mmitchel at gcc dot gnu dot org
2006-06-04 18:00 ` mmitchel at gcc dot gnu dot org
2006-09-06 0:12 ` jason at gcc dot gnu dot org
2006-09-06 5:28 ` jason at gcc dot gnu dot org
2006-09-07 22:27 ` [Bug c++/26571] [4.0/4.1 " jason at gcc dot gnu dot org
2006-09-07 22:38 ` jason at gcc dot gnu dot org
2006-09-07 23:04 ` jason at gcc dot gnu dot org
2006-09-07 23:07 ` jason 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).