public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6620: partial template specialization on int
@ 2002-05-09 20:06 jototland
0 siblings, 0 replies; 5+ messages in thread
From: jototland @ 2002-05-09 20:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 6620
>Category: c++
>Synopsis: partial template specialization on int
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 09 20:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Jo Totland
>Release: g++ 3.04, g++ 2.95.4
>Organization:
>Environment:
Debian unstable, linux kernel 2.4.18
>Description:
The attached source-file gives an internal compiler error when compiled with g++.
jo@bogon:~/units$ g++ -v -c minimal2.cc
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
/usr/lib/gcc-lib/i386-linux/2.95.4/cpp0 -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ minimal2.cc /tmp/ccnsOHUh.ii
GNU CPP version 2.95.4 20011002 (Debian prerelease) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3
/usr/local/include
/usr/lib/gcc-lib/i386-linux/2.95.4/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../i386-linux/include
End of omitted list.
/usr/lib/gcc-lib/i386-linux/2.95.4/cc1plus /tmp/ccnsOHUh.ii -quiet -dumpbase minimal2.cc -version -o /tmp/ccrc1m4k.s
GNU C++ version 2.95.4 20011002 (Debian prerelease) (i386-linux) compiled by GNU C version 2.95.4 20011002 (Debian prerelease).
minimal2.cc:10: Internal compiler error.
minimal2.cc:10: Please submit a full bug report.
minimal2.cc:10: Internal compiler error:
minimal2.cc:10: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
jo@bogon:~/units$ g++-3.0 -v -c minimal2.cc
Reading specs from /usr/lib/gcc-lib/i386-linux/3.0.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.0.4
/usr/lib/gcc-lib/i386-linux/3.0.4/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=4 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ minimal2.cc -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase minimal2.cc -version -o /tmp/cc4oFYdd.s
GNU CPP version 3.0.4 (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0.4 (i386-linux)
compiled by GNU C version 3.0.4.
ignoring nonexistent directory "/usr/i386-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/g++-v3
/usr/include/g++-v3/i386-linux
/usr/include/g++-v3/backward
/usr/local/include
/usr/lib/gcc-lib/i386-linux/3.0.4/include
/usr/include
End of search list.
minimal2.cc:10: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Compile the attached test-program
>Fix:
No idea
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="minimal2.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="minimal2.cc"
dGVtcGxhdGUgPGludCBOPiBzdHJ1Y3QgSG9sZEludCB7fTsKCnRlbXBsYXRlIDxjbGFzcyBBLCBj
bGFzcyBCPiBzdHJ1Y3QgQWRkOwoKdGVtcGxhdGUgPGludCBOPiBzdHJ1Y3QgQWRkPEhvbGRJbnQ8
Tj4sIEhvbGRJbnQ8LU4+ID4geyB0eXBlZGVmIGludCB0eXBlOyB9OwoKdGVtcGxhdGUgPGludCBO
LCBpbnQgTT4gCnN0cnVjdCBBZGQ8SG9sZEludDxOPiwgSG9sZEludDxNPiA+IHsgdHlwZWRlZiBI
b2xkSW50PE4rTT4gdHlwZTsgfTsKCnR5cGVkZWYgQWRkPEhvbGRJbnQ8MT4sIEhvbGRJbnQ8LTE+
ID46OnR5cGUgQVNERjsK
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/6620: partial template specialization on int
@ 2002-05-16 7:01 lerdsuwa
0 siblings, 0 replies; 5+ messages in thread
From: lerdsuwa @ 2002-05-16 7:01 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jototland, lerdsuwa
Synopsis: partial template specialization on int
State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Thu May 16 07:01:28 2002
State-Changed-Why:
Fixed in the main trunk. It won't be fixed in 3.1 branch
as stability is the main focus there.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6620
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/6620: partial template specialization on int
@ 2002-05-15 8:26 lerdsuwa
0 siblings, 0 replies; 5+ messages in thread
From: lerdsuwa @ 2002-05-15 8:26 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jototland, lerdsuwa, nobody
Synopsis: partial template specialization on int
Responsible-Changed-From-To: unassigned->lerdsuwa
Responsible-Changed-By: lerdsuwa
Responsible-Changed-When: Wed May 15 08:26:41 2002
Responsible-Changed-Why:
Patch submitted.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6620
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/6620: partial template specialization on int
@ 2002-05-13 3:06 Reichelt
0 siblings, 0 replies; 5+ messages in thread
From: Reichelt @ 2002-05-13 3:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/6620; it has been noted by GNATS.
From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, jototland@hotmail.com, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org
Cc:
Subject: Re: c++/6620: partial template specialization on int
Date: Mon, 13 May 2002 12:37:15 +0200
Hi,
on can reduce the testcase a little more:
--------------------------snip here-------------------------------
template <int N> struct HoldInt {};
template <class A, class B> struct Add;
template <int N, int M> struct Add< HoldInt<N>, HoldInt<M> > {};
template <int N> struct Add< HoldInt<N>, HoldInt<-N> > {};
Add< HoldInt<1>, HoldInt<-1> > a;
--------------------------snip here-------------------------------
By the way, both testcases not only crash gcc but even SGI's native
compiler, so they seem to be a real compiler-killers ;-)
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6620
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: c++/6620: partial template specialization on int
@ 2002-05-10 9:32 lerdsuwa
0 siblings, 0 replies; 5+ messages in thread
From: lerdsuwa @ 2002-05-10 9:32 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jototland, nobody
Synopsis: partial template specialization on int
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Fri May 10 09:32:06 2002
State-Changed-Why:
Confirmed. Still present in trunk and 3.1 branch.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6620
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-05-16 14:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-09 20:06 c++/6620: partial template specialization on int jototland
2002-05-10 9:32 lerdsuwa
2002-05-13 3:06 Reichelt
2002-05-15 8:26 lerdsuwa
2002-05-16 7:01 lerdsuwa
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).