public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/14339] New: Bogus extra error message after redefinition of member function @ 2004-02-29 1:56 olly at survex dot com 2004-02-29 2:01 ` [Bug c++/14339] [3.3 Regression] " pinskia at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: olly at survex dot com @ 2004-02-29 1:56 UTC (permalink / raw) To: gcc-bugs $ cat gccbug.cc class A { public: A() {} int foo(int); }; int A::foo(int x) { return x; } int A::foo(int x) { return x + 1; } $ g++ -c gccbug.cc gccbug.cc:8: error: redefinition of `int A::foo(int)' gccbug.cc:7: error: `int A::foo(int)' previously defined here gccbug.cc:8: error: no `int A::foo(int)' member function declared in class `A' $ The last error line is bogus as that method *is* declared in class A. This extra error message is largely cosmetic, though perhaps it might confuse some people. This error also occurs with GCC 3.2.3, but not with 2.95, so technically it's a regression... -- Summary: Bogus extra error message after redefinition of member function Product: gcc Version: 3.3.3 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: olly at survex dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14339 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/14339] [3.3 Regression] Bogus extra error message after redefinition of member function 2004-02-29 1:56 [Bug c++/14339] New: Bogus extra error message after redefinition of member function olly at survex dot com @ 2004-02-29 2:01 ` pinskia at gcc dot gnu dot org 2004-04-18 19:38 ` gdr at gcc dot gnu dot org 2004-04-18 21:13 ` olly at survex dot com 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-02-29 2:01 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-29 02:01 ------- Confirmed on the 3.3 branch but fixed on the 3.4.0 branch and the mainline but it is a regression from 3.0.4. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |diagnostic Known to fail| |3.2.3 3.3.1 Known to work| |3.4.0 3.5.0 3.0.4 Last reconfirmed|0000-00-00 00:00:00 |2004-02-29 02:01:09 date| | Summary|Bogus extra error message |[3.3 Regression] Bogus extra |after redefinition of member|error message after |function |redefinition of member | |function Target Milestone|--- |3.3.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14339 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/14339] [3.3 Regression] Bogus extra error message after redefinition of member function 2004-02-29 1:56 [Bug c++/14339] New: Bogus extra error message after redefinition of member function olly at survex dot com 2004-02-29 2:01 ` [Bug c++/14339] [3.3 Regression] " pinskia at gcc dot gnu dot org @ 2004-04-18 19:38 ` gdr at gcc dot gnu dot org 2004-04-18 21:13 ` olly at survex dot com 2 siblings, 0 replies; 4+ messages in thread From: gdr at gcc dot gnu dot org @ 2004-04-18 19:38 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From gdr at gcc dot gnu dot org 2004-04-18 18:52 ------- Fixed on 3.4.0. Won't be fixed in 3.3.x -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|3.3.4 |3.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14339 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/14339] [3.3 Regression] Bogus extra error message after redefinition of member function 2004-02-29 1:56 [Bug c++/14339] New: Bogus extra error message after redefinition of member function olly at survex dot com 2004-02-29 2:01 ` [Bug c++/14339] [3.3 Regression] " pinskia at gcc dot gnu dot org 2004-04-18 19:38 ` gdr at gcc dot gnu dot org @ 2004-04-18 21:13 ` olly at survex dot com 2 siblings, 0 replies; 4+ messages in thread From: olly at survex dot com @ 2004-04-18 21:13 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From olly at survex dot com 2004-04-18 19:48 ------- Confirmed as fixed by the first 3.4.0 prerelease. -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14339 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-04-18 19:48 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-02-29 1:56 [Bug c++/14339] New: Bogus extra error message after redefinition of member function olly at survex dot com 2004-02-29 2:01 ` [Bug c++/14339] [3.3 Regression] " pinskia at gcc dot gnu dot org 2004-04-18 19:38 ` gdr at gcc dot gnu dot org 2004-04-18 21:13 ` olly at survex 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).