public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8164: internal error: segmentation fault
@ 2002-11-05 9:16 Volker Reichelt
0 siblings, 0 replies; 3+ messages in thread
From: Volker Reichelt @ 2002-11-05 9:16 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/8164; it has been noted by GNATS.
From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: schnoerr@mailzone.com, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org
Cc:
Subject: Re: c++/8164: internal error: segmentation fault
Date: Tue, 5 Nov 2002 19:05:27 +0100
Hi,
the problem can be reduced to the following code snippet (which looks
legal to me):
-------------------------------snip here-------------------------
template <bool> struct A {};
template <bool> struct B
{
void foo()
{
const int i=0;
typedef A< i<=1 > C;
typedef A< i<=2 > C;
}
};
-------------------------------snip here-------------------------
gcc 2.95.x rejects the code with an error message.
gcc 3.0.x, the 3.2 branch and mainline produce an ICE.
Greetings,
Volker
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8164
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/8164: internal error: segmentation fault
@ 2002-10-27 6:43 lerdsuwa
0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-10-27 6:43 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, schnoerr
Synopsis: internal error: segmentation fault
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sun Oct 27 06:43:04 2002
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8164
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/8164: internal error: segmentation fault
@ 2002-10-07 10:16 schnoerr
0 siblings, 0 replies; 3+ messages in thread
From: schnoerr @ 2002-10-07 10:16 UTC (permalink / raw)
To: gcc-gnats
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3025 bytes --]
>Number: 8164
>Category: c++
>Synopsis: internal error: segmentation fault
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 07 10:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Claudius Schnörr
>Release: gcc version 3.2 20020818 (prerelease)
>Organization:
>Environment:
@PC169/.../testThreads$ gcc -v
Reading specs from /bin/../lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-1/configure --enable-languages=c,c++,f77,ja
va --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --with
out-included-gettext --enable-interpreter --disable-sjlj-exceptions --disable-ve
rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc
-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr
--sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecd
ir=/usr/sbin
Thread model: posix
gcc version 3.2 20020818 (prerelease)
>Description:
g++ bug2.cc -o bug2 -Wall
bug2.cc: In member function `void Test<Rank>::dat_embrace(Test<LowRank>&)':
bug2.cc:32: 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.
in method dat_embrace, the template-rank-parameters are
checked by a compile-time assert.
It works well for Rank, but fails for LowRank
>How-To-Repeat:
>Fix:
Prove template parameter LowRank at runtime rather than at compile-time
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug2.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug2.cc"
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCgp0ZW1wbGF0ZSA8Ym9v
bCBiPiBzdHJ1Y3QgU1RBVElDX0FTU0VSVElPTl9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] 3+ messages in thread
end of thread, other threads:[~2002-11-05 17:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-05 9:16 c++/8164: internal error: segmentation fault Volker Reichelt
-- strict thread matches above, loose matches on Subject: below --
2002-10-27 6:43 lerdsuwa
2002-10-07 10:16 schnoerr
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).