public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33494] [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr
2007-09-19 6:49 [Bug c++/33494] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
@ 2007-09-19 6:49 ` reichelt at gcc dot gnu dot org
2007-09-28 4:10 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-09-19 6:49 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33494
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/33494] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr
@ 2007-09-19 6:49 reichelt at gcc dot gnu dot org
2007-09-19 6:49 ` [Bug c++/33494] " reichelt 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 @ 2007-09-19 6:49 UTC (permalink / raw)
To: gcc-bugs
The C++ frontend generates a broken diagnostic for the following code
snippet since GCC 3.4.0:
==============================================
template<int> void foo(int(*f=0)());
==============================================
bug.cc:1: error: variable or field 'foo' declared void
bug.cc:1: error: 'f' was not declared in this scope
bug.cc:1: error: '(int)(#'modop_expr' not supported by dump_expr#<expression
error>)' cannot be used as a function
Another testcase for the unsupported 'modop_expr' is the following:
==============================================
template<int> struct A
{
int i;
typeof(A = A()) i;
};
==============================================
bug.cc:2: error: expected primary-expression before '=' token
bug.cc:2: error: declaration of '__typeof__ (#'modop_expr' not supported by
dump_expr#<expression error>) A<<anonymous> >::i'
bug.cc:1: error: conflicts with previous declaration 'int A<<anonymous> >::i'
--
Summary: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr'
not supported by dump_expr
Product: gcc
Version: 4.3.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=33494
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/33494] [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr
2007-09-19 6:49 [Bug c++/33494] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
2007-09-19 6:49 ` [Bug c++/33494] " reichelt at gcc dot gnu dot org
@ 2007-09-28 4:10 ` mmitchel at gcc dot gnu dot org
2007-10-29 11:04 ` pcarlini at suse dot de
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-09-28 4:10 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33494
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/33494] [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr
2007-09-19 6:49 [Bug c++/33494] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
2007-09-19 6:49 ` [Bug c++/33494] " reichelt at gcc dot gnu dot org
2007-09-28 4:10 ` mmitchel at gcc dot gnu dot org
@ 2007-10-29 11:04 ` pcarlini at suse dot de
2007-11-01 2:17 ` paolo at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pcarlini at suse dot de @ 2007-10-29 11:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pcarlini at suse dot de 2007-10-29 11:04 -------
On it.
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-10-29 11:04:45
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33494
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/33494] [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr
2007-09-19 6:49 [Bug c++/33494] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-10-29 11:04 ` pcarlini at suse dot de
@ 2007-11-01 2:17 ` paolo at gcc dot gnu dot org
2007-11-01 2:19 ` paolo at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-11-01 2:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from paolo at gcc dot gnu dot org 2007-11-01 02:17 -------
Subject: Bug 33494
Author: paolo
Date: Thu Nov 1 02:17:02 2007
New Revision: 129815
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129815
Log:
/cp
2007-10-31 Paolo Carlini <pcarlini@suse.de>
PR c++/33494
* cxx-pretty-print.c (pp_cxx_typeid_expression,
pp_cxx_delete_expression): Change to static linkage.
* cxx-pretty-print.h: Adjust declarations.
* error.c (dump_expr, case EXPR_PACK_EXPANSION, TYPEID_EXPR,
MEMBER_REF, DOTSTAR_EXPR, DELETE_EXPR, VEC_DELETE_EXPR,
MODOP_EXPR): Forward to pp_expression.
* cxx-pretty-print.c (pp_cxx_expression, case NON_DEPENDENT_EXPR):
Fix typo.
/testsuite
2007-10-31 Paolo Carlini <pcarlini@suse.de>
PR c++/33494
* g++.dg/template/error35.C: New.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cxx-pretty-print.c
trunk/gcc/cp/cxx-pretty-print.h
trunk/gcc/cp/error.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33494
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/33494] [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr
2007-09-19 6:49 [Bug c++/33494] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-11-01 2:17 ` paolo at gcc dot gnu dot org
@ 2007-11-01 2:19 ` paolo at gcc dot gnu dot org
2007-11-01 2:20 ` [Bug c++/33494] [4.1/4.2 " pcarlini at suse dot de
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-11-01 2:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from paolo at gcc dot gnu dot org 2007-11-01 02:18 -------
Subject: Bug 33494
Author: paolo
Date: Thu Nov 1 02:18:44 2007
New Revision: 129816
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129816
Log:
/cp
2007-10-31 Paolo Carlini <pcarlini@suse.de>
PR c++/33494
* cxx-pretty-print.c (pp_cxx_typeid_expression,
pp_cxx_delete_expression): Change to static linkage.
* cxx-pretty-print.h: Adjust declarations.
* error.c (dump_expr, case EXPR_PACK_EXPANSION, TYPEID_EXPR,
MEMBER_REF, DOTSTAR_EXPR, DELETE_EXPR, VEC_DELETE_EXPR,
MODOP_EXPR): Forward to pp_expression.
* cxx-pretty-print.c (pp_cxx_expression, case NON_DEPENDENT_EXPR):
Fix typo.
/testsuite
2007-10-31 Paolo Carlini <pcarlini@suse.de>
PR c++/33494
* g++.dg/template/error35.C: New.
Added:
trunk/gcc/testsuite/g++.dg/template/error35.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33494
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/33494] [4.1/4.2 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr
2007-09-19 6:49 [Bug c++/33494] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2007-11-01 2:19 ` paolo at gcc dot gnu dot org
@ 2007-11-01 2:20 ` pcarlini at suse dot de
2008-01-02 23:57 ` reichelt at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pcarlini at suse dot de @ 2007-11-01 2:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pcarlini at suse dot de 2007-11-01 02:19 -------
Fixed in mainline.
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|pcarlini at suse dot de |unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
Summary|[4.1/4.2/4.3 regression] |[4.1/4.2 regression] Broken
|Broken diagnostic: |diagnostic: 'modop_expr' not
|'modop_expr' not supported |supported by dump_expr
|by dump_expr |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33494
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/33494] [4.1/4.2 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr
2007-09-19 6:49 [Bug c++/33494] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2007-11-01 2:20 ` [Bug c++/33494] [4.1/4.2 " pcarlini at suse dot de
@ 2008-01-02 23:57 ` reichelt at gcc dot gnu dot org
2008-01-03 1:52 ` [Bug c++/33494] [4.1 " reichelt at gcc dot gnu dot org
2008-07-04 16:15 ` jsm28 at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-02 23:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from reichelt at gcc dot gnu dot org 2008-01-02 23:53 -------
Subject: Bug 33494
Author: reichelt
Date: Wed Jan 2 23:52:17 2008
New Revision: 131269
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131269
Log:
Backport:
2007-10-31 Paolo Carlini <pcarlini@suse.de>
PR c++/33494
* cxx-pretty-print.c (pp_cxx_typeid_expression,
pp_cxx_delete_expression): Change to static linkage.
* cxx-pretty-print.h: Adjust declarations.
* error.c (dump_expr, case SCOPE_REF, TYPEID_EXPR, DELETE_EXPR,
VEC_DELETE_EXPR, MODOP_EXPR): Forward to pp_expression.
* cxx-pretty-print.c (pp_cxx_expression, case NON_DEPENDENT_EXPR):
Fix typo.
* g++.dg/template/error35.C: New.
Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/error35.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/cxx-pretty-print.c
branches/gcc-4_2-branch/gcc/cp/cxx-pretty-print.h
branches/gcc-4_2-branch/gcc/cp/error.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33494
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/33494] [4.1 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr
2007-09-19 6:49 [Bug c++/33494] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2008-01-02 23:57 ` reichelt at gcc dot gnu dot org
@ 2008-01-03 1:52 ` reichelt at gcc dot gnu dot org
2008-07-04 16:15 ` jsm28 at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-03 1:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from reichelt at gcc dot gnu dot org 2008-01-02 23:56 -------
Now also fixed in GCC 4.2.3.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2 regression] Broken |[4.1 regression] Broken
|diagnostic: 'modop_expr' not|diagnostic: 'modop_expr' not
|supported by dump_expr |supported by dump_expr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33494
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/33494] [4.1 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr
2007-09-19 6:49 [Bug c++/33494] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2008-01-03 1:52 ` [Bug c++/33494] [4.1 " reichelt at gcc dot gnu dot org
@ 2008-07-04 16:15 ` jsm28 at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 16:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jsm28 at gcc dot gnu dot org 2008-07-04 16:14 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to fail| |4.1.3
Known to work| |4.2.3
Resolution| |FIXED
Target Milestone|4.1.3 |4.2.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33494
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-07-04 16:15 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-19 6:49 [Bug c++/33494] New: [4.1/4.2/4.3 regression] Broken diagnostic: 'modop_expr' not supported by dump_expr reichelt at gcc dot gnu dot org
2007-09-19 6:49 ` [Bug c++/33494] " reichelt at gcc dot gnu dot org
2007-09-28 4:10 ` mmitchel at gcc dot gnu dot org
2007-10-29 11:04 ` pcarlini at suse dot de
2007-11-01 2:17 ` paolo at gcc dot gnu dot org
2007-11-01 2:19 ` paolo at gcc dot gnu dot org
2007-11-01 2:20 ` [Bug c++/33494] [4.1/4.2 " pcarlini at suse dot de
2008-01-02 23:57 ` reichelt at gcc dot gnu dot org
2008-01-03 1:52 ` [Bug c++/33494] [4.1 " reichelt at gcc dot gnu dot org
2008-07-04 16:15 ` jsm28 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).