public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18018] New: ICE on dubious extern declaration
@ 2004-10-15 17:39 porten at kde dot org
2004-10-15 17:41 ` [Bug c++/18018] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: porten at kde dot org @ 2004-10-15 17:39 UTC (permalink / raw)
To: gcc-bugs
The "extern" declaration below probably doesn't make much sense. But when
putting this code into a C++ file (not C!)
void foo()
{
}
void bar()
{
extern void foo();
foo();
}
and compiling this with (the -g is important)
gcc -c -g test.cpp
I get this error:
/tmp/test.cpp: In function `void bar()':
/tmp/test.cpp:9: internal compiler error: in gen_subprogram_die, at
dwarf2out.c:11183
gcc is from today's CVS HEAD. g++ -v gives:
Reading specs from /opt/gcc-4.0/lib/gcc/i686-pc-linux-gnu/4.0.0/specs
Configured with: /home/porten/gcc/configure --enable-languages=c,c++
--prefix=/opt/gcc-4.0
Thread model: posix
gcc version 4.0.0 20041015 (experimental)
--
Summary: ICE on dubious extern declaration
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: porten at kde dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18018
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/18018] ICE on dubious extern declaration
2004-10-15 17:39 [Bug c++/18018] New: ICE on dubious extern declaration porten at kde dot org
@ 2004-10-15 17:41 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-15 17:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-15 17:41 -------
*** This bug has been marked as a duplicate of 16792 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18018
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-15 17:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-15 17:39 [Bug c++/18018] New: ICE on dubious extern declaration porten at kde dot org
2004-10-15 17:41 ` [Bug c++/18018] " 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).