public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24052] New: &#`label_decl' not supported by dump_expr#<expression error>
@ 2005-09-25 8:48 guillaume dot melquiond at ens-lyon dot fr
2005-09-25 8:49 ` [Bug c++/24052] " guillaume dot melquiond at ens-lyon dot fr
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: guillaume dot melquiond at ens-lyon dot fr @ 2005-09-25 8:48 UTC (permalink / raw)
To: gcc-bugs
I do not think labels as values are widely used with C++ operators; I stumbled
over it only because of a typo (double &&). But in case of error, it will
produce a garbled message (tested from 3.3 to 4.1). For example,
a.cpp:3:no match for 'operator&&' in 'A() && &#'label_decl' not supported by
dump_expr#<expression error>'
Testcase:
struct A {};
bool operator&&(A const &, A const &);
int main() { A() && && b; }
--
Summary: &#`label_decl' not supported by dump_expr#<expression
error>
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: guillaume dot melquiond at ens-lyon dot fr
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24052
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24052] &#`label_decl' not supported by dump_expr#<expression error>
2005-09-25 8:48 [Bug c++/24052] New: &#`label_decl' not supported by dump_expr#<expression error> guillaume dot melquiond at ens-lyon dot fr
@ 2005-09-25 8:49 ` guillaume dot melquiond at ens-lyon dot fr
2005-09-25 14:51 ` [Bug c++/24052] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-09-27 16:10 ` mmitchel at gcc dot gnu dot org
2 siblings, 0 replies; 10+ messages in thread
From: guillaume dot melquiond at ens-lyon dot fr @ 2005-09-25 8:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From guillaume dot melquiond at ens-lyon dot fr 2005-09-25 08:49 -------
Created an attachment (id=9803)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9803&action=view)
Trivial fix
The error message is a bit better now:
a.cpp:3: error: no match for 'operator&&' in 'A() && & b'
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24052
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24052] [3.4/4.0/4.1 Regression] &#`label_decl' not supported by dump_expr#<expression error>
2005-09-25 8:48 [Bug c++/24052] New: &#`label_decl' not supported by dump_expr#<expression error> guillaume dot melquiond at ens-lyon dot fr
2005-09-25 8:49 ` [Bug c++/24052] " guillaume dot melquiond at ens-lyon dot fr
@ 2005-09-25 14:51 ` pinskia at gcc dot gnu dot org
2005-09-27 16:10 ` mmitchel at gcc dot gnu dot org
2 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-25 14:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-25 14:51 -------
Confirmed a regression from 3.2.3 which gave:
t.cc: In function `int main()':
t.cc:3: no match for `A && void*' operator
t.cc:3: candidates are: operator&&(bool, bool) <built-in>
t.cc:2: bool operator&&(const A&, const A&)
t.cc:3: label `b' used but not defined
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Known to fail| |3.3.3 3.4.0 4.0.0 4.1.0
Known to work| |3.2.3 3.0.4 2.95.3
Last reconfirmed|0000-00-00 00:00:00 |2005-09-25 14:51:31
date| |
Summary|&#`label_decl' not supported|[3.4/4.0/4.1 Regression]
|by dump_expr#<expression |&#`label_decl' not supported
|error> |by dump_expr#<expression
| |error>
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24052
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24052] [3.4/4.0/4.1 Regression] &#`label_decl' not supported by dump_expr#<expression error>
2005-09-25 8:48 [Bug c++/24052] New: &#`label_decl' not supported by dump_expr#<expression error> guillaume dot melquiond at ens-lyon dot fr
2005-09-25 8:49 ` [Bug c++/24052] " guillaume dot melquiond at ens-lyon dot fr
2005-09-25 14:51 ` [Bug c++/24052] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-09-27 16:10 ` mmitchel at gcc dot gnu dot org
2 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:10 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24052
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24052] [3.4/4.0/4.1 Regression] &#`label_decl' not supported by dump_expr#<expression error>
[not found] <bug-24052-7904@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2005-10-12 13:45 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-12 13:46 ` bonzini at gcc dot gnu dot org
5 siblings, 0 replies; 10+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-10-12 13:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from bonzini at gcc dot gnu dot org 2005-10-12 13:46 -------
Patch committed to all open branches.
--
bonzini at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|3.3.3 3.4.0 4.0.0 4.1.0 |3.3.3 3.4.4 4.0.2
Known to work|3.2.3 3.0.4 2.95.3 |3.2.3 3.0.4 2.95.3 3.4.5
| |4.0.3 4.1.0
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24052
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24052] [3.4/4.0/4.1 Regression] &#`label_decl' not supported by dump_expr#<expression error>
[not found] <bug-24052-7904@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2005-10-12 13:35 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-12 13:45 ` cvs-commit at gcc dot gnu dot org
2005-10-12 13:46 ` bonzini at gcc dot gnu dot org
5 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-12 13:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from cvs-commit at gcc dot gnu dot org 2005-10-12 13:45 -------
Subject: Bug 24052
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: bonzini@gcc.gnu.org 2005-10-12 13:45:10
Modified files:
gcc/cp : error.c ChangeLog
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/ext: label5.C
Log message:
==> cp/ChangeLog <==
2005-10-12 Paolo Bonzini <bonzini@gnu.org>
PR c++/24052
* error.c (dump_expr): Pass LABEL_DECL to dump_decl. Print
an ADDR_EXPR of a LABEL_DECL as &&.
==> testsuite/ChangeLog <==
2005-10-12 Paolo Bonzini <bonzini@gnu.org>
PR c++/24052
* g++.dg/ext/label5.C: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/label5.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.241.4.9&r2=1.241.4.10
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.246&r2=1.3892.2.247
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.441&r2=1.3389.2.442
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24052
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24052] [3.4/4.0/4.1 Regression] &#`label_decl' not supported by dump_expr#<expression error>
[not found] <bug-24052-7904@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2005-10-12 13:16 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-12 13:35 ` cvs-commit at gcc dot gnu dot org
2005-10-12 13:45 ` cvs-commit at gcc dot gnu dot org
2005-10-12 13:46 ` bonzini at gcc dot gnu dot org
5 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-12 13:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from cvs-commit at gcc dot gnu dot org 2005-10-12 13:35 -------
Subject: Bug 24052
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: bonzini@gcc.gnu.org 2005-10-12 13:35:41
Modified files:
gcc/cp : ChangeLog error.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/ext: label5.C
Log message:
==> cp/ChangeLog <==
2005-10-12 Paolo Bonzini <bonzini@gnu.org>
PR c++/24052
* error.c (dump_expr): Pass LABEL_DECL to dump_decl. Print
an ADDR_EXPR of a LABEL_DECL as &&.
==> testsuite/ChangeLog <==
2005-10-12 Paolo Bonzini <bonzini@gnu.org>
PR c++/24052
* g++.dg/ext/label5.C: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.126&r2=1.4648.2.127
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.279.2.4&r2=1.279.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.449&r2=1.5084.2.450
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/label5.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24052
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24052] [3.4/4.0/4.1 Regression] &#`label_decl' not supported by dump_expr#<expression error>
[not found] <bug-24052-7904@http.gcc.gnu.org/bugzilla/>
2005-10-07 7:21 ` bonzini at gcc dot gnu dot org
2005-10-11 16:28 ` bonzini at gcc dot gnu dot org
@ 2005-10-12 13:16 ` cvs-commit at gcc dot gnu dot org
2005-10-12 13:35 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-12 13:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from cvs-commit at gcc dot gnu dot org 2005-10-12 13:16 -------
Subject: Bug 24052
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: bonzini@gcc.gnu.org 2005-10-12 13:16:23
Modified files:
gcc/cp : ChangeLog error.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/ext: label5.C
Log message:
==> cp/ChangeLog <==
2005-10-12 Paolo Bonzini <bonzini@gnu.org>
PR c++/24052
* error.c (dump_expr): Pass LABEL_DECL to dump_decl. Print
an ADDR_EXPR of a LABEL_DECL as &&.
==> testsuite/ChangeLog <==
2005-10-12 Paolo Bonzini <bonzini@gnu.org>
PR c++/24052
* g++.dg/ext/label5.C: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4922&r2=1.4923
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&r1=1.294&r2=1.295
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6175&r2=1.6176
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/label5.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24052
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24052] [3.4/4.0/4.1 Regression] &#`label_decl' not supported by dump_expr#<expression error>
[not found] <bug-24052-7904@http.gcc.gnu.org/bugzilla/>
2005-10-07 7:21 ` bonzini at gcc dot gnu dot org
@ 2005-10-11 16:28 ` bonzini at gcc dot gnu dot org
2005-10-12 13:16 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-10-11 16:28 UTC (permalink / raw)
To: gcc-bugs
--
bonzini at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |bonzini at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-09-25 14:51:31 |2005-10-11 16:28:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24052
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/24052] [3.4/4.0/4.1 Regression] &#`label_decl' not supported by dump_expr#<expression error>
[not found] <bug-24052-7904@http.gcc.gnu.org/bugzilla/>
@ 2005-10-07 7:21 ` bonzini at gcc dot gnu dot org
2005-10-11 16:28 ` bonzini at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 10+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2005-10-07 7:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from bonzini at gcc dot gnu dot org 2005-10-07 07:21 -------
Created an attachment (id=9916)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9916&action=view)
another patch
Similar to the previous patch, but also prints && correctly for ADDR_EXPR of a
LABEL_DECL.
--
bonzini at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #9803 is|0 |1
obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24052
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-10-12 13:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-25 8:48 [Bug c++/24052] New: &#`label_decl' not supported by dump_expr#<expression error> guillaume dot melquiond at ens-lyon dot fr
2005-09-25 8:49 ` [Bug c++/24052] " guillaume dot melquiond at ens-lyon dot fr
2005-09-25 14:51 ` [Bug c++/24052] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-09-27 16:10 ` mmitchel at gcc dot gnu dot org
[not found] <bug-24052-7904@http.gcc.gnu.org/bugzilla/>
2005-10-07 7:21 ` bonzini at gcc dot gnu dot org
2005-10-11 16:28 ` bonzini at gcc dot gnu dot org
2005-10-12 13:16 ` cvs-commit at gcc dot gnu dot org
2005-10-12 13:35 ` cvs-commit at gcc dot gnu dot org
2005-10-12 13:45 ` cvs-commit at gcc dot gnu dot org
2005-10-12 13:46 ` bonzini 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).