public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault
@ 2013-10-04 20:45 dimitry.ivanov at gmail dot com
2013-10-04 20:46 ` [Bug c++/58624] " dimitry.ivanov at gmail dot com
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: dimitry.ivanov at gmail dot com @ 2013-10-04 20:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
Bug ID: 58624
Summary: gcc internal compiler error: Segmentaion fault
Product: gcc
Version: 4.8.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dimitry.ivanov at gmail dot com
Created attachment 30955
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30955&action=edit
preprocessed file
gcc 4.8.1 segfaults while compiling code with templated static thread_local
storage.
Compiler output:
$ gcc -v -std=c++0x -save-temps test.cpp
Reading specs from /usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc/4.8.1/libexec/gcc/x86_64-redhat-linux-gnu/4.8.1/lto-wrapper
Target: x86_64-redhat-linux-gnu
Configured with: ./configure --prefix=/usr/local/gcc/4.8.1
--build=x86_64-redhat-linux-gnu --libdir=/usr/lib64 --with-slibdir=/usr/lib64
--enable-version-specific-runtime-libs --enable-threads --enable-static
--enable-languages=c,c++ --disable-multilib --with-cloog=/tmp/gcc-deps
--enable-cloog-backend=isl --disable-cloog-version-check
Thread model: posix
gcc version 4.8.1 (GCC)
COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-save-temps' '-mtune=generic'
'-march=x86-64'
/usr/local/gcc/4.8.1/libexec/gcc/x86_64-redhat-linux-gnu/4.8.1/cc1plus -E
-quiet -v -D_GNU_SOURCE test.cpp -mtune=generic -march=x86-64 -std=c++11
-fpch-preprocess -o test.ii
ignoring nonexistent directory
"/usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/../../../../../x86_64-redhat-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
.
/pubmed_gen/Work/boost/include
/usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/include/c++
/usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/include/c++/x86_64-redhat-linux-gnu
/usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/include/c++/backward
/usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/include
/usr/local/include
/usr/local/gcc/4.8.1/include
/usr/lib64/gcc/x86_64-redhat-linux-gnu/4.8.1/include-fixed
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-save-temps' '-mtune=generic'
'-march=x86-64'
/usr/local/gcc/4.8.1/libexec/gcc/x86_64-redhat-linux-gnu/4.8.1/cc1plus
-fpreprocessed test.ii -quiet -dumpbase test.cpp -mtune=generic -march=x86-64
-auxbase test -std=c++11 -version -o test.s
GNU C++ (GCC) version 4.8.1 (x86_64-redhat-linux-gnu)
compiled by GNU C version 4.8.1, GMP version 5.1.2, MPFR version 3.1.2,
MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.8.1 (x86_64-redhat-linux-gnu)
compiled by GNU C version 4.8.1, GMP version 5.1.2, MPFR version 3.1.2,
MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 4dcc0c9a463b0607e2149021eec6a2a8
test.cpp: In function 'std::unique_ptr<std::basic_string<char> >&
_ZTWN1AIT_E1sE()':
test.cpp:10:18: internal compiler error: Segmentation fault
if (!s) {
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/58624] gcc internal compiler error: Segmentaion fault
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
@ 2013-10-04 20:46 ` dimitry.ivanov at gmail dot com
2013-10-05 21:11 ` paolo.carlini at oracle dot com
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: dimitry.ivanov at gmail dot com @ 2013-10-04 20:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
--- Comment #1 from dimitry <dimitry.ivanov at gmail dot com> ---
Created attachment 30956
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30956&action=edit
source file
Added small source file that reproduces the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/58624] gcc internal compiler error: Segmentaion fault
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
2013-10-04 20:46 ` [Bug c++/58624] " dimitry.ivanov at gmail dot com
@ 2013-10-05 21:11 ` paolo.carlini at oracle dot com
2013-10-10 11:49 ` [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash rguenth at gcc dot gnu.org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-10-05 21:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Doesn't look like a C++ front-end issue.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
2013-10-04 20:46 ` [Bug c++/58624] " dimitry.ivanov at gmail dot com
2013-10-05 21:11 ` paolo.carlini at oracle dot com
@ 2013-10-10 11:49 ` rguenth at gcc dot gnu.org
2014-01-10 14:43 ` mpolacek at gcc dot gnu.org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-10-10 11:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-10-10
CC| |hubicka at gcc dot gnu.org
Component|c++ |middle-end
Summary|gcc internal compiler |gcc internal compiler
|error: Segmentaion fault |error: Segmentaion fault in
| |insert_to_assembler_name_ha
| |sh
Ever confirmed|0 |1
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. Also happens on trunk.
t.C: In function 'std::unique_ptr<std::basic_string<char> >& _ZTWN1AIT_E1sE()':
t.C:10:7: internal compiler error: Segmentation fault
if (!s) {
^
0xc67bdd crash_signal
/space/rguenther/src/svn/gcc-4_8-branch/gcc/toplev.c:332
0x563d74 tree_check(tree_node const*, char const*, int, char const*, tree_code)
/space/rguenther/src/svn/gcc-4_8-branch/gcc/tree.h:3893
0xea90f1 decl_assembler_name_hash(tree_node const*)
/space/rguenther/src/svn/gcc-4_8-branch/gcc/tree.c:601
0x89636a insert_to_assembler_name_hash
/space/rguenther/src/svn/gcc-4_8-branch/gcc/symtab.c:118
0x89661a symtab_register_node(symtab_node_def*)
/space/rguenther/src/svn/gcc-4_8-branch/gcc/symtab.c:199
0xf0c8c5 varpool_node_for_decl(tree_node*)
/space/rguenther/src/svn/gcc-4_8-branch/gcc/varpool.c:52
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
` (2 preceding siblings ...)
2013-10-10 11:49 ` [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash rguenth at gcc dot gnu.org
@ 2014-01-10 14:43 ` mpolacek at gcc dot gnu.org
2014-08-26 12:19 ` trippels at gcc dot gnu.org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-01-10 14:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org,
| |mpolacek at gcc dot gnu.org
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started by r192211.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
` (3 preceding siblings ...)
2014-01-10 14:43 ` mpolacek at gcc dot gnu.org
@ 2014-08-26 12:19 ` trippels at gcc dot gnu.org
2014-08-26 12:28 ` trippels at gcc dot gnu.org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-08-26 12:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |stefan at schweter dot it
--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
*** Bug 62268 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
` (4 preceding siblings ...)
2014-08-26 12:19 ` trippels at gcc dot gnu.org
@ 2014-08-26 12:28 ` trippels at gcc dot gnu.org
2014-08-26 12:39 ` trippels at gcc dot gnu.org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-08-26 12:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcb314 at hotmail dot com
--- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
*** Bug 61558 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
` (5 preceding siblings ...)
2014-08-26 12:28 ` trippels at gcc dot gnu.org
@ 2014-08-26 12:39 ` trippels at gcc dot gnu.org
2014-08-26 18:02 ` jason at gcc dot gnu.org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-08-26 12:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trippels at gcc dot gnu.org
--- Comment #7 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
For 5:
markus@x4 tmp % cat boo.ii
static __typeof 0 a __attribute__ ((__weakref__ ("")));
template <typename> class A
{
static __thread int b;
};
markus@x4 tmp % g++ -std=c++11 boo.ii
boo.ii:5:2: internal compiler error: Segmentation fault
};
^
0xbbfe5f crash_signal
../../gcc/gcc/toplev.c:339
0x856964 tree_check
../../gcc/gcc/tree.h:2962
0x856964 symbol_table::decl_assembler_name_hash(tree_node const*)
../../gcc/gcc/symtab.c:69
0x856c13 symbol_table::insert_to_assembler_name_hash(symtab_node*, bool)
../../gcc/gcc/symtab.c:181
0x856d5c symbol_table::symtab_initialize_asm_name_hash()
../../gcc/gcc/symtab.c:263
0x858414 symbol_table::symtab_initialize_asm_name_hash()
../../gcc/gcc/symtab.c:958
0x858414 symtab_node::get_for_asmname(tree_node const*)
../../gcc/gcc/symtab.c:947
0x864d80 handle_alias_pairs
../../gcc/gcc/cgraphunit.c:1111
0x869d8c symbol_table::finalize_compilation_unit()
../../gcc/gcc/cgraphunit.c:2264
0x656d6a cp_write_global_declarations()
../../gcc/gcc/cp/decl2.c:4666
Please submit a full bug report,
with preprocessed source if appropriate.
for 4.8, 4.9 and 5:
markus@x4 tmp % cat test.ii
namespace std
{
typedef int string;
template <typename> class unique_ptr;
}
template <typename> class A
{
static thread_local std::unique_ptr<std::string> s;
public:
A () { s; }
};
int main () { A<void> a; }
markus@x4 tmp % g++ -std=c++11 test.ii
cc1plus: internal compiler error: Segmentation fault
0xbbfe5f crash_signal
../../gcc/gcc/toplev.c:339
0x856964 tree_check
../../gcc/gcc/tree.h:2962
0x856964 symbol_table::decl_assembler_name_hash(tree_node const*)
../../gcc/gcc/symtab.c:69
0x856c13 symbol_table::insert_to_assembler_name_hash(symtab_node*, bool)
../../gcc/gcc/symtab.c:181
0x856d5c symbol_table::symtab_initialize_asm_name_hash()
../../gcc/gcc/symtab.c:263
0x8699d2 analyze_functions
../../gcc/gcc/cgraphunit.c:1094
0x869da5 symbol_table::finalize_compilation_unit()
../../gcc/gcc/cgraphunit.c:2277
0x656d6a cp_write_global_declarations()
../../gcc/gcc/cp/decl2.c:4666
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
` (6 preceding siblings ...)
2014-08-26 12:39 ` trippels at gcc dot gnu.org
@ 2014-08-26 18:02 ` jason at gcc dot gnu.org
2014-08-26 20:05 ` jason at gcc dot gnu.org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu.org @ 2014-08-26 18:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #7)
> static __typeof 0 a __attribute__ ((__weakref__ ("")));
> template <typename> class A
> {
> static __thread int b;
> };
The problem with this testcase is that set_decl_tls_model adds A<T>::b, an
uninstantiated template, to the symbol table. This ICE was introduced by
honza's r211689.
I'll deal with the other testcase.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
` (7 preceding siblings ...)
2014-08-26 18:02 ` jason at gcc dot gnu.org
@ 2014-08-26 20:05 ` jason at gcc dot gnu.org
2014-08-26 20:22 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu.org @ 2014-08-26 20:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Aug 26 20:05:13 2014
New Revision: 214546
URL: https://gcc.gnu.org/viewcvs?rev=214546&root=gcc&view=rev
Log:
PR c++/58624
* pt.c (tsubst_copy_and_build) [VAR_DECL]: Use TLS wrapper.
* semantics.c (finish_id_expression): Don't call TLS wrapper in a
template.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/tls/thread_local10.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/pt.c
branches/gcc-4_9-branch/gcc/cp/semantics.c
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
` (8 preceding siblings ...)
2014-08-26 20:05 ` jason at gcc dot gnu.org
@ 2014-08-26 20:22 ` jason at gcc dot gnu.org
2014-10-15 16:46 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu.org @ 2014-08-26 20:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.9.2. Still broken on trunk because of the set_decl_tls_model
issue, which I will leave to honza.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
` (9 preceding siblings ...)
2014-08-26 20:22 ` jason at gcc dot gnu.org
@ 2014-10-15 16:46 ` jason at gcc dot gnu.org
2014-12-14 3:57 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu.org @ 2014-10-15 16:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
--- Comment #12 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Oct 15 16:46:11 2014
New Revision: 216273
URL: https://gcc.gnu.org/viewcvs?rev=216273&root=gcc&view=rev
Log:
PR c++/58624
* pt.c (tsubst_copy_and_build) [VAR_DECL]: Use TLS wrapper.
* semantics.c (finish_id_expression): Don't call TLS wrapper in a
template.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/tls/thread_local10.C
Modified:
branches/gcc-4_8-branch/gcc/cp/ChangeLog
branches/gcc-4_8-branch/gcc/cp/pt.c
branches/gcc-4_8-branch/gcc/cp/semantics.c
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
` (10 preceding siblings ...)
2014-10-15 16:46 ` jason at gcc dot gnu.org
@ 2014-12-14 3:57 ` jason at gcc dot gnu.org
2014-12-15 10:36 ` jakub at gcc dot gnu.org
2021-08-10 22:58 ` pinskia at gcc dot gnu.org
13 siblings, 0 replies; 15+ messages in thread
From: jason at gcc dot gnu.org @ 2014-12-14 3:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
--- Comment #14 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #13)
> Jason, do you think that change (just the plugin.exp one) is ok for 4.8.4,
Yes, that should be fine.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
` (11 preceding siblings ...)
2014-12-14 3:57 ` jason at gcc dot gnu.org
@ 2014-12-15 10:36 ` jakub at gcc dot gnu.org
2021-08-10 22:58 ` pinskia at gcc dot gnu.org
13 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-12-15 10:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Dec 15 10:36:16 2014
New Revision: 218739
URL: https://gcc.gnu.org/viewcvs?rev=218739&root=gcc&view=rev
Log:
PR middle-end/58624
Backported from mainline
2014-03-07 Jason Merrill <jason@redhat.com>
* g++.dg/plugin/plugin.exp (DEFAULT_CXXFLAGS): Remove -ansi.
Modified:
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/plugin/plugin.exp
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
` (12 preceding siblings ...)
2014-12-15 10:36 ` jakub at gcc dot gnu.org
@ 2021-08-10 22:58 ` pinskia at gcc dot gnu.org
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-10 22:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58624
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |6.0
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jason Merrill from comment #8)
> (In reply to Markus Trippelsdorf from comment #7)
> > static __typeof 0 a __attribute__ ((__weakref__ ("")));
> > template <typename> class A
> > {
> > static __thread int b;
> > };
>
> The problem with this testcase is that set_decl_tls_model adds A<T>::b, an
> uninstantiated template, to the symbol table. This ICE was introduced by
> honza's r211689.
>
> I'll deal with the other testcase.
which seems like was fixed with r6-1888:
@@ -2523,8 +2523,12 @@ duplicate_decls (tree newdecl, tree olddecl, bool
newdecl_is_friend)
}
if (VAR_P (newdecl)
- && DECL_THREAD_LOCAL_P (newdecl))
- set_decl_tls_model (olddecl, DECL_TLS_MODEL (newdecl));
+ && CP_DECL_THREAD_LOCAL_P (newdecl))
+ {
+ CP_DECL_THREAD_LOCAL_P (olddecl) = true;
+ if (!processing_template_decl)
+ set_decl_tls_model (olddecl, DECL_TLS_MODEL (newdecl));
+ }
}
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2021-08-10 22:58 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-04 20:45 [Bug c++/58624] New: gcc internal compiler error: Segmentaion fault dimitry.ivanov at gmail dot com
2013-10-04 20:46 ` [Bug c++/58624] " dimitry.ivanov at gmail dot com
2013-10-05 21:11 ` paolo.carlini at oracle dot com
2013-10-10 11:49 ` [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash rguenth at gcc dot gnu.org
2014-01-10 14:43 ` mpolacek at gcc dot gnu.org
2014-08-26 12:19 ` trippels at gcc dot gnu.org
2014-08-26 12:28 ` trippels at gcc dot gnu.org
2014-08-26 12:39 ` trippels at gcc dot gnu.org
2014-08-26 18:02 ` jason at gcc dot gnu.org
2014-08-26 20:05 ` jason at gcc dot gnu.org
2014-08-26 20:22 ` jason at gcc dot gnu.org
2014-10-15 16:46 ` jason at gcc dot gnu.org
2014-12-14 3:57 ` jason at gcc dot gnu.org
2014-12-15 10:36 ` jakub at gcc dot gnu.org
2021-08-10 22:58 ` pinskia at gcc dot gnu.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).