public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28432] New: [4.0/4.1/4.2 regression] duplicate "no member function declared" message
@ 2006-07-19 10:41 reichelt at gcc dot gnu dot org
2006-07-19 20:47 ` [Bug c++/28432] " sje at cup dot hp dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-19 10:41 UTC (permalink / raw)
To: gcc-bugs
Since today, I get some duplicate diagnostics:
======================
struct A {};
void A::foo();
======================
bug.cc:2: error: no 'void A::foo()' member function declared in class 'A'
bug.cc:2: error: no 'void A::foo()' member function declared in class 'A'
bug.cc:2: error: declaration of 'void A::foo()' outside of class is not
definition
Apparently we call check_classfn twice.
Steve, the duplicate message appeared with your patch for PR 28304.
But you probably only uncovered a latent problem. Would you mind
taking a look, anyway?
--
Summary: [4.0/4.1/4.2 regression] duplicate "no member function
declared" message
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=28432
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28432] [4.0/4.1/4.2 regression] duplicate "no member function declared" message
2006-07-19 10:41 [Bug c++/28432] New: [4.0/4.1/4.2 regression] duplicate "no member function declared" message reichelt at gcc dot gnu dot org
@ 2006-07-19 20:47 ` sje at cup dot hp dot com
2006-07-26 0:33 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: sje at cup dot hp dot com @ 2006-07-19 20:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from sje at cup dot hp dot com 2006-07-19 20:47 -------
Actually, I think my patch may have been wrong. By adding the return to
check_classfn, what I basically did was to skip the call to add_method, which
according to the comments, is specifically there to add the non-existent method
and thus cause us to not give duplicate messages. If I undo the patch for PR
28304, we call add_method and the duplicate messages go away but then I have
the ICE again. I think the ICE needs to be fixed some other way but I am not
sure how to do it. I will think some more but any advice you might have would
be appreciated.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28432
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28432] [4.0/4.1/4.2 regression] duplicate "no member function declared" message
2006-07-19 10:41 [Bug c++/28432] New: [4.0/4.1/4.2 regression] duplicate "no member function declared" message reichelt at gcc dot gnu dot org
2006-07-19 20:47 ` [Bug c++/28432] " sje at cup dot hp dot com
@ 2006-07-26 0:33 ` pinskia at gcc dot gnu dot org
2006-07-31 23:31 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-26 0:33 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28432
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28432] [4.0/4.1/4.2 regression] duplicate "no member function declared" message
2006-07-19 10:41 [Bug c++/28432] New: [4.0/4.1/4.2 regression] duplicate "no member function declared" message reichelt at gcc dot gnu dot org
2006-07-19 20:47 ` [Bug c++/28432] " sje at cup dot hp dot com
2006-07-26 0:33 ` pinskia at gcc dot gnu dot org
@ 2006-07-31 23:31 ` mmitchel at gcc dot gnu dot org
2006-08-01 16:45 ` sje at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-31 23:31 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=28432
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28432] [4.0/4.1/4.2 regression] duplicate "no member function declared" message
2006-07-19 10:41 [Bug c++/28432] New: [4.0/4.1/4.2 regression] duplicate "no member function declared" message reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-07-31 23:31 ` mmitchel at gcc dot gnu dot org
@ 2006-08-01 16:45 ` sje at gcc dot gnu dot org
2006-08-03 17:10 ` sje at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: sje at gcc dot gnu dot org @ 2006-08-01 16:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from sje at gcc dot gnu dot org 2006-08-01 16:45 -------
Subject: Bug 28432
Author: sje
Date: Tue Aug 1 16:45:14 2006
New Revision: 115857
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115857
Log:
PR c++/28432
* decl2.c (check_classfn): Remove early return.
* search.c (lookup_member): Return NULL with bad type.
* g++.dg/other/pr28304.C: Change expected error message.
* g++.dg/other/pr28432.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/pr28432.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c
trunk/gcc/cp/search.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/other/pr28304.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28432
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28432] [4.0/4.1/4.2 regression] duplicate "no member function declared" message
2006-07-19 10:41 [Bug c++/28432] New: [4.0/4.1/4.2 regression] duplicate "no member function declared" message reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-08-01 16:45 ` sje at gcc dot gnu dot org
@ 2006-08-03 17:10 ` sje at gcc dot gnu dot org
2006-08-03 17:16 ` sje at gcc dot gnu dot org
2006-08-03 17:17 ` sje at cup dot hp dot com
6 siblings, 0 replies; 8+ messages in thread
From: sje at gcc dot gnu dot org @ 2006-08-03 17:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from sje at gcc dot gnu dot org 2006-08-03 17:10 -------
Subject: Bug 28432
Author: sje
Date: Thu Aug 3 17:09:57 2006
New Revision: 115906
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115906
Log:
PR c++/28432
* decl2.c (check_classfn): Remove early return.
* search.c (lookup_member): Return NULL with bad type.
* g++.dg/other/pr28304.C: Change expected error message.
* g++.dg/other/pr28432.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/pr28432.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/decl2.c
branches/gcc-4_1-branch/gcc/cp/search.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/pr28304.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28432
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28432] [4.0/4.1/4.2 regression] duplicate "no member function declared" message
2006-07-19 10:41 [Bug c++/28432] New: [4.0/4.1/4.2 regression] duplicate "no member function declared" message reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-08-03 17:10 ` sje at gcc dot gnu dot org
@ 2006-08-03 17:16 ` sje at gcc dot gnu dot org
2006-08-03 17:17 ` sje at cup dot hp dot com
6 siblings, 0 replies; 8+ messages in thread
From: sje at gcc dot gnu dot org @ 2006-08-03 17:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from sje at gcc dot gnu dot org 2006-08-03 17:16 -------
Subject: Bug 28432
Author: sje
Date: Thu Aug 3 17:16:20 2006
New Revision: 115908
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115908
Log:
PR c++/28432
* decl2.c (check_classfn): Remove early return.
* search.c (lookup_member): Return NULL with bad type.
* g++.dg/other/pr28304.C: Change expected error message.
* g++.dg/other/pr28432.C: New test.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/pr28432.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/decl2.c
branches/gcc-4_0-branch/gcc/cp/search.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/pr28304.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28432
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/28432] [4.0/4.1/4.2 regression] duplicate "no member function declared" message
2006-07-19 10:41 [Bug c++/28432] New: [4.0/4.1/4.2 regression] duplicate "no member function declared" message reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-08-03 17:16 ` sje at gcc dot gnu dot org
@ 2006-08-03 17:17 ` sje at cup dot hp dot com
6 siblings, 0 replies; 8+ messages in thread
From: sje at cup dot hp dot com @ 2006-08-03 17:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from sje at cup dot hp dot com 2006-08-03 17:17 -------
Fixed on mainline, 4.1 branch, and 4.0 branch.
--
sje at cup dot hp dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28432
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-08-03 17:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-19 10:41 [Bug c++/28432] New: [4.0/4.1/4.2 regression] duplicate "no member function declared" message reichelt at gcc dot gnu dot org
2006-07-19 20:47 ` [Bug c++/28432] " sje at cup dot hp dot com
2006-07-26 0:33 ` pinskia at gcc dot gnu dot org
2006-07-31 23:31 ` mmitchel at gcc dot gnu dot org
2006-08-01 16:45 ` sje at gcc dot gnu dot org
2006-08-03 17:10 ` sje at gcc dot gnu dot org
2006-08-03 17:16 ` sje at gcc dot gnu dot org
2006-08-03 17:17 ` sje at cup dot hp dot com
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).