public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12368] New: Duplicate error message for default argument
@ 2003-09-22 15:19 bangerth at dealii dot org
2003-09-22 20:40 ` [Bug c++/12368] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: bangerth at dealii dot org @ 2003-09-22 15:19 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12368
Summary: Duplicate error message for default argument
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P2
Component: c++
AssignedTo: gdr at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
This code
----------------------
template<typename C>
int foo(C c = &g) {};
----------------------
generates this message with present mainline:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc:2: error: `g' was not declared in this scope
x.cc:2: error: `g' was not declared in this scope
While correct, we get it once too often.
W.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/12368] Duplicate error message for default argument
2003-09-22 15:19 [Bug c++/12368] New: Duplicate error message for default argument bangerth at dealii dot org
@ 2003-09-22 20:40 ` pinskia at gcc dot gnu dot org
2003-12-18 18:07 ` dhazeghi at yahoo dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-22 20:40 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12368
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-09-22 17:04:50
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-22 17:04 -------
I can confirm this on the mainline (20030920).
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/12368] Duplicate error message for default argument
2003-09-22 15:19 [Bug c++/12368] New: Duplicate error message for default argument bangerth at dealii dot org
2003-09-22 20:40 ` [Bug c++/12368] " pinskia at gcc dot gnu dot org
@ 2003-12-18 18:07 ` dhazeghi at yahoo dot com
2003-12-18 18:51 ` giovannibajo at libero dot it
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-12-18 18:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dhazeghi at yahoo dot com 2003-12-18 17:53 -------
I checked on mainline (20031216) and it seems fixed. Does this need a testcase submitted
though?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12368
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/12368] Duplicate error message for default argument
2003-09-22 15:19 [Bug c++/12368] New: Duplicate error message for default argument bangerth at dealii dot org
2003-09-22 20:40 ` [Bug c++/12368] " pinskia at gcc dot gnu dot org
2003-12-18 18:07 ` dhazeghi at yahoo dot com
@ 2003-12-18 18:51 ` giovannibajo at libero dot it
2004-01-17 23:15 ` dhazeghi at yahoo dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: giovannibajo at libero dot it @ 2003-12-18 18:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2003-12-18 18:27 -------
Yes, please. Specify in the testcase comment what it's for though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12368
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/12368] Duplicate error message for default argument
2003-09-22 15:19 [Bug c++/12368] New: Duplicate error message for default argument bangerth at dealii dot org
` (2 preceding siblings ...)
2003-12-18 18:51 ` giovannibajo at libero dot it
@ 2004-01-17 23:15 ` dhazeghi at yahoo dot com
2004-01-17 23:30 ` gdr at integrable-solutions dot net
2004-04-23 22:01 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-01-17 23:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dhazeghi at yahoo dot com 2004-01-17 23:15 -------
Dumb question: where should a testcase like this go? g++.dg/warn/default-arg.C ? Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12368
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/12368] Duplicate error message for default argument
2003-09-22 15:19 [Bug c++/12368] New: Duplicate error message for default argument bangerth at dealii dot org
` (3 preceding siblings ...)
2004-01-17 23:15 ` dhazeghi at yahoo dot com
@ 2004-01-17 23:30 ` gdr at integrable-solutions dot net
2004-04-23 22:01 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: gdr at integrable-solutions dot net @ 2004-01-17 23:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2004-01-17 23:30 -------
Subject: Re: Duplicate error message for default argument
"dhazeghi at yahoo dot com" <gcc-bugzilla@gcc.gnu.org> writes:
| Dumb question: where should a testcase like this go?
| g++.dg/warn/default-arg.C ?
Yes, that makes sense.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12368
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/12368] Duplicate error message for default argument
2003-09-22 15:19 [Bug c++/12368] New: Duplicate error message for default argument bangerth at dealii dot org
` (4 preceding siblings ...)
2004-01-17 23:30 ` gdr at integrable-solutions dot net
@ 2004-04-23 22:01 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-23 22:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-23 20:15 -------
This was fixed for 3.4.0 just was not closed as there was no testcase but Duplicate error
testcases do not work right with dejagnu really so just closing as fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12368
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-04-23 20:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-22 15:19 [Bug c++/12368] New: Duplicate error message for default argument bangerth at dealii dot org
2003-09-22 20:40 ` [Bug c++/12368] " pinskia at gcc dot gnu dot org
2003-12-18 18:07 ` dhazeghi at yahoo dot com
2003-12-18 18:51 ` giovannibajo at libero dot it
2004-01-17 23:15 ` dhazeghi at yahoo dot com
2004-01-17 23:30 ` gdr at integrable-solutions dot net
2004-04-23 22:01 ` 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).