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
* [Bug c++/17155] Another link problem with function-local classes
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 ` bangerth at dealii dot org
2004-08-23 23:41 ` [Bug c++/17155] [3.5 regression] " reichelt at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bangerth at dealii dot org @ 2004-08-23 16:15 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17155
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17155] [3.5 regression] Another link problem with function-local classes
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 ` reichelt at gcc dot gnu dot org
2004-08-24 16:58 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-23 23:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-23 23:41 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |monitored, wrong-code
Known to fail| |3.5.0
Known to work| |3.3.4 3.4.2
Last reconfirmed|0000-00-00 00:00:00 |2004-08-23 23:41:30
date| |
Summary|Another link problem with |[3.5 regression] Another
|function-local classes |link problem with function-
| |local classes
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17155
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17155] [3.5 regression] Another link problem with function-local classes
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
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-24 16:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-24 16:58 -------
Using Phil's regression tester I found these dates when it started to fail:
3.5.0 20040624 (471,471) fails
3.5.0 20040622 (470,470) passes
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17155
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17155] [3.5 regression] Another link problem with function-local classes
2004-08-23 15:42 [Bug c++/17155] New: Another link problem with function-local classes Richard dot Kreckel at Framatome-ANP dot com
` (2 preceding siblings ...)
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
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-25 12:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-08-25 12:12 -------
Mark, your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-06/msg00888.html
caused the regression. Could you please have a look?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17155
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17155] [3.5 regression] Another link problem with function-local classes
2004-08-23 15:42 [Bug c++/17155] New: Another link problem with function-local classes Richard dot Kreckel at Framatome-ANP dot com
` (3 preceding siblings ...)
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
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-25 15:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-25 15:06 -------
*** Bug 17182 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |Ralf dot Wildenhues at gmx
| |dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17155
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17155] [3.5 regression] Another link problem with function-local classes
2004-08-23 15:42 [Bug c++/17155] New: Another link problem with function-local classes Richard dot Kreckel at Framatome-ANP dot com
` (4 preceding siblings ...)
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
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-25 20:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-08-25 20:06 -------
Subject: Bug 17155
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2004-08-25 20:06:37
Modified files:
gcc/cp : ChangeLog lex.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/inherit: local2.C
Log message:
PR c++/17155
* lex.c (build_lang_decl): Set DECL_NO_STATIC_CHAIN for all C++
functions.
PR c++/17155
* g++.dg/inherit/local2.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4307&r2=1.4308
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/lex.c.diff?cvsroot=gcc&r1=1.340&r2=1.341
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/inherit/local2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4190&r2=1.4191
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17155
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/17155] [3.5 regression] Another link problem with function-local classes
2004-08-23 15:42 [Bug c++/17155] New: Another link problem with function-local classes Richard dot Kreckel at Framatome-ANP dot com
` (5 preceding siblings ...)
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
6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-25 20:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-08-25 20:18 -------
Fixed in GCC 3.5.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
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).