public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39155] New: Internal compiler error on (invalid) explicit template instantiation of template function
@ 2009-02-11 21:04 cas43 at cs dot stanford dot edu
2009-02-11 21:08 ` [Bug c++/39155] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: cas43 at cs dot stanford dot edu @ 2009-02-11 21:04 UTC (permalink / raw)
To: gcc-bugs
The following code causes an internal compiler error when compiled with g++
without options:
namespace N{template<class T> void foo();}
using namespace N;
template<class T> void foo(){}
template void foo<int>();
Compiler info:
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.0.1/configure
--prefix=/usr/local/compilers/gcc-4.0.1-x86_64-x86_64 --enable-languages=c,c++
--enable-bootstrap
Thread model: posix
gcc version 4.0.1
The code compiles with a useful diagnostic (and no internal error) when
compiled with this newer version of gcc:
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)
--
Summary: Internal compiler error on (invalid) explicit template
instantiation of template function
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: cas43 at cs dot stanford dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39155
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/39155] Internal compiler error on (invalid) explicit template instantiation of template function
2009-02-11 21:04 [Bug c++/39155] New: Internal compiler error on (invalid) explicit template instantiation of template function cas43 at cs dot stanford dot edu
@ 2009-02-11 21:08 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-02-11 21:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-02-11 21:08 -------
You reported this against 4.0.1 and 4.0.x and 4.1.x are no longer being
supported (meaning no more 4.0.x or 4.1.x release). Since it has been fixed in
4.1.2, I am closing this as fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.2
Version|4.1.2 |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39155
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-11 21:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11 21:04 [Bug c++/39155] New: Internal compiler error on (invalid) explicit template instantiation of template function cas43 at cs dot stanford dot edu
2009-02-11 21:08 ` [Bug c++/39155] " 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).