public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17155] New: Another link problem with function-local classes
@ 2004-08-23 15:42 Richard dot Kreckel at Framatome-ANP dot com
  2004-08-23 16:15 ` [Bug c++/17155] " bangerth at dealii dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Richard dot Kreckel at Framatome-ANP dot com @ 2004-08-23 15:42 UTC (permalink / raw)
  To: gcc-bugs

$ g++ -v
Reading specs from
/data/scratch/devtools/gcc-3.5.0-pre-20040822/lib/gcc/i686-pc-linux-gnu/3.5.0/specs
Configured with: ../gcc-3.5-20040822/configure
--prefix=/data/scratch/devtools/gcc-3.5.0-pre-20040822 --enable-languages=c,c++
--with-as=/data/scratch/binutils/2.15/bin/as
--with-ld=/data/scratch/binutils/2.15/bin/ld --enable-__cxa_atexit --disable-nls
i686-pc-linux-gnu
Thread model: posix
gcc version 3.5.0 20040822 (experimental)
$ cat test.cc
struct A {
    virtual ~A() {}
};


void tsk_tsk(void)
{
    struct B : public A {
        B(int) {}
    };
}

int main() {}
$ $ g++ -W -Wall test.cc
/tmp/cccfVwjp.o(.text+0x64): In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `tsk_tsk()::B::~B()'
/tmp/cccfVwjp.o(.text+0x6e): In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `tsk_tsk()::B::~B()'
collect2: ld returned 1 exit status

This appears to be a flashback of c++/17121.

-- 
           Summary: Another link problem with function-local classes
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Richard dot Kreckel at Framatome-ANP 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=17155


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

end of thread, other threads:[~2004-08-25 20:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-23 15:42 [Bug c++/17155] New: Another link problem with function-local classes Richard dot Kreckel at Framatome-ANP dot com
2004-08-23 16:15 ` [Bug c++/17155] " bangerth at dealii dot org
2004-08-23 23:41 ` [Bug c++/17155] [3.5 regression] " reichelt at gcc dot gnu dot org
2004-08-24 16:58 ` pinskia at gcc dot gnu dot org
2004-08-25 12:12 ` reichelt at gcc dot gnu dot org
2004-08-25 15:06 ` pinskia at gcc dot gnu dot org
2004-08-25 20:06 ` cvs-commit at gcc dot gnu dot org
2004-08-25 20:19 ` mmitchel 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).