public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/42010] New: ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581
@ 2009-11-11 19:56 zsojka at seznam dot cz
2009-11-14 12:51 ` [Bug c++/42010] " zsojka at seznam dot cz
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2009-11-11 19:56 UTC (permalink / raw)
To: gcc-bugs
Following code crashes in gcc trunk revisions r154095 and r154098. r153685
compiles fine.
Command line switches:
g++ -std=c++0x
or
g++ -std=gnu++0x
------ testcase.cpp ------
struct A {
void f()
{
static struct {
} s;
}
};
--------------------------
$ /mnt/svn/gcc-trunk/binary-154095-lto/bin/g++ -v -std=gnu++0x -c -o tmp.o
testcase.cpp
Using built-in specs.
COLLECT_GCC=/mnt/svn/gcc-trunk/binary-154095-lto/bin/g++
COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-154095-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --enable-languages=lto,c,c++
--prefix=/mnt/svn/gcc-trunk/binary-154095-lto/
Thread model: posix
gcc version 4.5.0 20091111 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-std=gnu++0x' '-c' '-o' 'tmp.o' '-shared-libgcc'
'-mtune=generic'
/mnt/svn/gcc-trunk/binary-154095-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1plus
-fpreprocessed testcase-x.i -quiet -dumpbase testcase-x.i -mtune=generic
-auxbase-strip tmp.o -std=gnu++0x -version -o /tmp/ccQx8uCh.s
GNU C++ (GCC) version 4.5.0 20091111 (experimental) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.5.0 20091111 (experimental), GMP version
4.3.1, MPFR version 2.4.1-p5, MPC version 0.7
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.5.0 20091111 (experimental) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.5.0 20091111 (experimental), GMP version
4.3.1, MPFR version 2.4.1-p5, MPC version 0.7
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: ea1de8eb0212138b74b7539fd1683110
testcase-x.i: In member function ‘void A::f()’:
testcase-x.i:5:7: internal compiler error: lang_* check: failed in
discriminator_for_local_entity, at cp/mangle.c:1581
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE: lang_* check: failed in
discriminator_for_local_entity, at cp/mangle.c:1581
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zsojka at seznam dot cz
GCC host triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42010
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/42010] ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581
2009-11-11 19:56 [Bug c++/42010] New: ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581 zsojka at seznam dot cz
@ 2009-11-14 12:51 ` zsojka at seznam dot cz
2009-11-15 15:18 ` zsojka at seznam dot cz
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2009-11-14 12:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from zsojka at seznam dot cz 2009-11-14 12:50 -------
Created an attachment (id=19016)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19016&action=view)
even shorter testcase
This testcase is invalid C++, gcc gives diagnostics and crashes with the same
error message
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42010
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/42010] ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581
2009-11-11 19:56 [Bug c++/42010] New: ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581 zsojka at seznam dot cz
2009-11-14 12:51 ` [Bug c++/42010] " zsojka at seznam dot cz
@ 2009-11-15 15:18 ` zsojka at seznam dot cz
2009-11-15 16:45 ` [Bug c++/42010] [C++0x] " paolo dot carlini at oracle dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2009-11-15 15:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from zsojka at seznam dot cz 2009-11-15 15:17 -------
Since:
r153816 | jason | 2009-11-02 17:14:26 +0100 (Mon, 02 Nov 2009) | 5 lines
Restrict DR 757 change to C++0x mode.
* decl2.c (mark_used): Check cxx_dialect.
* decl.c (grokfndecl): Do check type linkage in C++98 mode.
(grokvardecl): Likewise.
* pt.c (check_instantiated_arg): Likewise.
Everything works fine when compiled with --enable-checking=release, the
resulting binary seems to be working correctly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42010
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/42010] [C++0x] ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581
2009-11-11 19:56 [Bug c++/42010] New: ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581 zsojka at seznam dot cz
2009-11-14 12:51 ` [Bug c++/42010] " zsojka at seznam dot cz
2009-11-15 15:18 ` zsojka at seznam dot cz
@ 2009-11-15 16:45 ` paolo dot carlini at oracle dot com
2009-12-04 23:25 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-11-15 16:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from paolo dot carlini at oracle dot com 2009-11-15 16:45 -------
It still crashes with checking enabled though, and that isn't good. Let's add
Jason in CC, maybe he can have a look...
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-11-15 16:45:22
date| |
Summary|ICE: lang_* check: failed in|[C++0x] ICE: lang_* check:
|discriminator_for_local_enti|failed in
|ty, at cp/mangle.c:1581 |discriminator_for_local_enti
| |ty, at cp/mangle.c:1581
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42010
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/42010] [C++0x] ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581
2009-11-11 19:56 [Bug c++/42010] New: ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581 zsojka at seznam dot cz
` (2 preceding siblings ...)
2009-11-15 16:45 ` [Bug c++/42010] [C++0x] " paolo dot carlini at oracle dot com
@ 2009-12-04 23:25 ` jason at gcc dot gnu dot org
2009-12-05 1:52 ` jason at gcc dot gnu dot org
2009-12-05 1:57 ` jason at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-12-04 23:25 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2009-11-15 16:45:22 |2009-12-04 23:25:22
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42010
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/42010] [C++0x] ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581
2009-11-11 19:56 [Bug c++/42010] New: ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581 zsojka at seznam dot cz
` (3 preceding siblings ...)
2009-12-04 23:25 ` jason at gcc dot gnu dot org
@ 2009-12-05 1:52 ` jason at gcc dot gnu dot org
2009-12-05 1:57 ` jason at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-12-05 1:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jason at gcc dot gnu dot org 2009-12-05 01:52 -------
Subject: Bug 42010
Author: jason
Date: Sat Dec 5 01:51:46 2009
New Revision: 155007
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155007
Log:
PR c++/42010
* cp-tree.h (DECL_DISCRIMINATOR_SET_P): New.
* mangle.c (discriminator_for_local_entity): Check it.
Added:
trunk/gcc/testsuite/g++.dg/abi/local2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/mangle.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42010
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/42010] [C++0x] ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581
2009-11-11 19:56 [Bug c++/42010] New: ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581 zsojka at seznam dot cz
` (4 preceding siblings ...)
2009-12-05 1:52 ` jason at gcc dot gnu dot org
@ 2009-12-05 1:57 ` jason at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-12-05 1:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jason at gcc dot gnu dot org 2009-12-05 01:56 -------
Fixed.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42010
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-12-05 1:57 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-11 19:56 [Bug c++/42010] New: ICE: lang_* check: failed in discriminator_for_local_entity, at cp/mangle.c:1581 zsojka at seznam dot cz
2009-11-14 12:51 ` [Bug c++/42010] " zsojka at seznam dot cz
2009-11-15 15:18 ` zsojka at seznam dot cz
2009-11-15 16:45 ` [Bug c++/42010] [C++0x] " paolo dot carlini at oracle dot com
2009-12-04 23:25 ` jason at gcc dot gnu dot org
2009-12-05 1:52 ` jason at gcc dot gnu dot org
2009-12-05 1:57 ` jason 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).