public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21907] New: poor diagnostic
@ 2005-06-04  9:18 igodard at pacbell dot net
  2005-06-04 14:59 ` [Bug c++/21907] " pinskia at gcc dot gnu dot org
  2005-06-04 19:32 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: igodard at pacbell dot net @ 2005-06-04  9:18 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), der2(1) {} };


gets you:

~/ootbc/members/src$ g++ foo.cc
foo.cc:5: error: multiple types in one declaration

(actual error is code is trying to construct a virtual base class)

-- 
           Summary: poor 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=21907


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

* [Bug c++/21907] poor diagnostic
  2005-06-04  9:18 [Bug c++/21907] New: poor diagnostic igodard at pacbell dot net
@ 2005-06-04 14:59 ` pinskia at gcc dot gnu dot org
  2005-06-04 19:32 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-04 14:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-04 14:59 -------
Huh, you missed the semi-colon which is what it is complaining about.

-- 


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


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

* [Bug c++/21907] poor diagnostic
  2005-06-04  9:18 [Bug c++/21907] New: poor diagnostic igodard at pacbell dot net
  2005-06-04 14:59 ` [Bug c++/21907] " pinskia at gcc dot gnu dot org
@ 2005-06-04 19:32 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-04 19:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-04 19:32 -------
The error message is clear what the problem is, so closing as invalid.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2005-06-04 19:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-04  9:18 [Bug c++/21907] New: poor diagnostic igodard at pacbell dot net
2005-06-04 14:59 ` [Bug c++/21907] " pinskia at gcc dot gnu dot org
2005-06-04 19:32 ` 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).