public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21908] New: Even poorer diagnostic
@ 2005-06-04  9:20 igodard at pacbell dot net
  2005-06-04 15:00 ` [Bug c++/21908] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: igodard at pacbell dot net @ 2005-06-04  9:20 UTC (permalink / raw)
  To: gcc-bugs

struct  virt { virt() : i(2) {} virt(int i) : i(i){} int i;  };
struct der1 : public virtual virt { der1(int i) : virt(i) {} }
struct der2 : public virtual virt { der2(int i) : virt(i) {} }
struct top : public der1, public der2 {
    top () : der1(0) {} };


gets you:

~/ootbc/members/src$ g++ foo.cc
foo.cc: In constructor `top::top()':
foo.cc:5: error: no matching function for call to `der2::der2(const void**)'
foo.cc:3: note: candidates are: der2::der2(const der2&)
foo.cc:3: note:                 der2::der2(int)
foo.cc: At global scope:
foo.cc:5: error: multiple types in one declaration

-- 
           Summary: Even poorer diagnostic
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21908


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/21908] Even poorer diagnostic
  2005-06-04  9:20 [Bug c++/21908] New: Even poorer diagnostic igodard at pacbell dot net
@ 2005-06-04 15:00 ` pinskia at gcc dot gnu dot org
  2005-06-04 18:55 ` igodard at pacbell dot net
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-04 15:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-04 14:59 -------
Again you missed the semi-colon.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21908


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/21908] Even poorer diagnostic
  2005-06-04  9:20 [Bug c++/21908] New: Even poorer diagnostic igodard at pacbell dot net
  2005-06-04 15:00 ` [Bug c++/21908] " pinskia at gcc dot gnu dot org
@ 2005-06-04 18:55 ` igodard at pacbell dot net
  2005-06-04 19:30 ` [Bug c++/21908] [3.4/4.0/4.1 Regression] poor diagnostic with vitrual base classes pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: igodard at pacbell dot net @ 2005-06-04 18:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From igodard at pacbell dot net  2005-06-04 18:55 -------
So I did :-)  So where does the `der2::der2(const void**)' come from?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21908


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/21908] [3.4/4.0/4.1 Regression] poor diagnostic with vitrual base classes
  2005-06-04  9:20 [Bug c++/21908] New: Even poorer diagnostic igodard at pacbell dot net
  2005-06-04 15:00 ` [Bug c++/21908] " pinskia at gcc dot gnu dot org
  2005-06-04 18:55 ` igodard at pacbell dot net
@ 2005-06-04 19:30 ` pinskia at gcc dot gnu dot org
  2005-07-22 21:17 ` pinskia at gcc dot gnu dot org
  2005-09-27 16:23 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-04 19:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-04 19:30 -------
(In reply to comment #2)
> So I did :-)  So where does the `der2::der2(const void**)' come from?

It is a bug and a regression.
Reduced testcase for that bug:
struct  virt { virt(){} virt(int i){}  };
struct der: public virtual virt { der(int i):virt(i) {} };
struct top : public der {
    top () {} };

3.2.3 gave:
t.cc: In constructor `top::top()':
t.cc:4: no matching function for call to `der::der()'
t.cc:2: candidates are: der::der(const der&)
t.cc:2:                 der::der(int)

which is the correct diagnostic.

3.3.3 gave something just as weird as 3.4.0 (and above):
t.cc: In constructor `top::top()':
t.cc:4: error: no matching function for call to `der::der(const <anonymous>**)'
t.cc:2: error: candidates are: der::der(const der&)
t.cc:2: error:                 der::der(int)

-- 
           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
   Last reconfirmed|0000-00-00 00:00:00         |2005-06-04 19:30:11
               date|                            |
            Summary|Even poorer diagnostic      |[3.4/4.0/4.1 Regression]
                   |                            |poor diagnostic with vitrual
                   |                            |base classes
   Target Milestone|---                         |3.4.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21908


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/21908] [3.4/4.0/4.1 Regression] poor diagnostic with vitrual base classes
  2005-06-04  9:20 [Bug c++/21908] New: Even poorer diagnostic igodard at pacbell dot net
                   ` (2 preceding siblings ...)
  2005-06-04 19:30 ` [Bug c++/21908] [3.4/4.0/4.1 Regression] poor diagnostic with vitrual base classes pinskia at gcc dot gnu dot org
@ 2005-07-22 21:17 ` pinskia at gcc dot gnu dot org
  2005-09-27 16:23 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-22 21:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-22 21:13 -------
Moving to 4.0.2 pre Mark.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.5                       |4.0.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21908


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/21908] [3.4/4.0/4.1 Regression] poor diagnostic with vitrual base classes
  2005-06-04  9:20 [Bug c++/21908] New: Even poorer diagnostic igodard at pacbell dot net
                   ` (3 preceding siblings ...)
  2005-07-22 21:17 ` pinskia at gcc dot gnu dot org
@ 2005-09-27 16:23 ` mmitchel at gcc dot gnu dot org
  4 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:23 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=21908


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/21908] [3.4/4.0/4.1 Regression] poor diagnostic with vitrual base classes
       [not found] <bug-21908-6594@http.gcc.gnu.org/bugzilla/>
  2005-10-17 20:44 ` mmitchel at gcc dot gnu dot org
@ 2005-10-18  5:56 ` cvs-commit at gcc dot gnu dot org
  2005-10-18  5:56 ` cvs-commit at gcc dot gnu dot org
  2 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-18  5:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from cvs-commit at gcc dot gnu dot org  2005-10-18 05:55 -------
Subject: Bug 21908

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-4_0-branch
Changes by:     mmitchel@gcc.gnu.org    2005-10-18 05:55:43

Modified files:
        gcc/cp         : call.c ChangeLog 

Log message:
        PR c++/21908
        * call.c (build_new_method_call): Do not show VTT parameters to
        the user.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.531.2.12&r2=1.531.2.13
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.141&r2=1.4648.2.142


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21908


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/21908] [3.4/4.0/4.1 Regression] poor diagnostic with vitrual base classes
       [not found] <bug-21908-6594@http.gcc.gnu.org/bugzilla/>
  2005-10-17 20:44 ` mmitchel at gcc dot gnu dot org
  2005-10-18  5:56 ` cvs-commit at gcc dot gnu dot org
@ 2005-10-18  5:56 ` cvs-commit at gcc dot gnu dot org
  2 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-10-18  5:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from cvs-commit at gcc dot gnu dot org  2005-10-18 05:56 -------
Subject: Bug 21908

CVSROOT:        /cvs/gcc
Module name:    gcc
Changes by:     mmitchel@gcc.gnu.org    2005-10-18 05:56:04

Modified files:
        gcc/cp         : call.c ChangeLog 

Log message:
        PR c++/21908
        * call.c (build_new_method_call): Do not show VTT parameters to
        the user.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.559&r2=1.560
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4943&r2=1.4944


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21908


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/21908] [3.4/4.0/4.1 Regression] poor diagnostic with vitrual base classes
       [not found] <bug-21908-6594@http.gcc.gnu.org/bugzilla/>
@ 2005-10-17 20:44 ` mmitchel at gcc dot gnu dot org
  2005-10-18  5:56 ` cvs-commit at gcc dot gnu dot org
  2005-10-18  5:56 ` cvs-commit at gcc dot gnu dot org
  2 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-17 20:44 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21908


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-10-18  5:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-04  9:20 [Bug c++/21908] New: Even poorer diagnostic igodard at pacbell dot net
2005-06-04 15:00 ` [Bug c++/21908] " pinskia at gcc dot gnu dot org
2005-06-04 18:55 ` igodard at pacbell dot net
2005-06-04 19:30 ` [Bug c++/21908] [3.4/4.0/4.1 Regression] poor diagnostic with vitrual base classes pinskia at gcc dot gnu dot org
2005-07-22 21:17 ` pinskia at gcc dot gnu dot org
2005-09-27 16:23 ` mmitchel at gcc dot gnu dot org
     [not found] <bug-21908-6594@http.gcc.gnu.org/bugzilla/>
2005-10-17 20:44 ` mmitchel at gcc dot gnu dot org
2005-10-18  5:56 ` cvs-commit at gcc dot gnu dot org
2005-10-18  5:56 ` cvs-commit 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).