public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37167]  New: C++ gives bogus error message (aliased to undefined symbol)
@ 2008-08-19 22:18 sje at cup dot hp dot com
  2008-08-24 22:56 ` [Bug c++/37167] [4.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: sje at cup dot hp dot com @ 2008-08-19 22:18 UTC (permalink / raw)
  To: gcc-bugs

This seems to be caused by the unit-at-a-time changes, the following program
compiled cleanly with -O2 at version 138139 but gives an error message when
compiled (with -O2) at version 138140.  I found it on IA64 HP-UX but was able
to reproduce it on x86_64 Linux.

class A { };
class B : public virtual A { };

class C { public: virtual class A* foo() const; };
class D : public virtual C { public: virtual struct B* foo() const; };

class B* D::foo() const { return 0; }

-----
x.cpp:7: error: 'B* *.LTHUNK1() const' aliased to undefined symbol
'_ZTch0_v0_n24_NK1D3fooEv


-- 
           Summary: C++ gives bogus error message (aliased to undefined
                    symbol)
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sje at cup dot hp dot com


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


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

end of thread, other threads:[~2008-09-10  8:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-19 22:18 [Bug c++/37167] New: C++ gives bogus error message (aliased to undefined symbol) sje at cup dot hp dot com
2008-08-24 22:56 ` [Bug c++/37167] [4.4 Regression] " pinskia at gcc dot gnu dot org
2008-09-09 20:22 ` jsm28 at gcc dot gnu dot org
2008-09-10  8:34 ` jakub 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).