public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/62299] New: [4.9/5 regression] ICE with __attribute__((__weakref__(""))) and __thread
@ 2014-08-28 23:06 lucdanton at free dot fr
  2014-08-29  8:58 ` [Bug c++/62299] " rguenth at gcc dot gnu.org
  2014-08-29  9:05 ` trippels at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: lucdanton at free dot fr @ 2014-08-28 23:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62299

            Bug ID: 62299
           Summary: [4.9/5 regression] ICE with
                    __attribute__((__weakref__(""))) and __thread
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lucdanton at free dot fr

$ g++-trunk --version
g++-trunk (GCC) 5.0.0 20140828 (experimental)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ cat testcase.cpp
static __typeof 0 __gthrw_pthread_once __attribute__((__weakref__("")));
template <typename T> class keyword_tss_ptrnoncopyable {
  static __thread T *value_;
};
$ g++-trunk testcase.cpp -c
testcase.cpp:4:2: internal compiler error: Segmentation fault
 };
  ^
0xc11bff crash_signal
    ../../gcc/gcc/toplev.c:339
0x8a49f4 tree_check
    ../../gcc/gcc/tree.h:2962
0x8a49f4 symbol_table::decl_assembler_name_hash(tree_node const*)
    ../../gcc/gcc/symtab.c:69
0x8a4c73 symbol_table::insert_to_assembler_name_hash(symtab_node*, bool)
    ../../gcc/gcc/symtab.c:181
0x8a4efc symbol_table::symtab_initialize_asm_name_hash()
    ../../gcc/gcc/symtab.c:263
0x8a6d6f symtab_node::get_for_asmname(tree_node const*)
    ../../gcc/gcc/symtab.c:947
0x8b2f38 handle_alias_pairs
    ../../gcc/gcc/cgraphunit.c:1111
0x8b7ddc symbol_table::finalize_compilation_unit()
    ../../gcc/gcc/cgraphunit.c:2264
0x69cde2 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.

----------

This testcase was mechanically derived from preprocessed source. As best as I
can tell the original __gthrw_pthread_once comes from
c++/5.0.0/x86_64-unknown-linux-gnu/bits/gthr-default.h., in case that matters.

The testcase is accepted by GCC 4.8 and 4.9.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/62299] [4.9/5 regression] ICE with __attribute__((__weakref__(""))) and __thread
  2014-08-28 23:06 [Bug c++/62299] New: [4.9/5 regression] ICE with __attribute__((__weakref__(""))) and __thread lucdanton at free dot fr
@ 2014-08-29  8:58 ` rguenth at gcc dot gnu.org
  2014-08-29  9:05 ` trippels at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-08-29  8:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62299

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org
   Target Milestone|---                         |4.9.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/62299] [4.9/5 regression] ICE with __attribute__((__weakref__(""))) and __thread
  2014-08-28 23:06 [Bug c++/62299] New: [4.9/5 regression] ICE with __attribute__((__weakref__(""))) and __thread lucdanton at free dot fr
  2014-08-29  8:58 ` [Bug c++/62299] " rguenth at gcc dot gnu.org
@ 2014-08-29  9:05 ` trippels at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-08-29  9:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62299

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |trippels at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
dup.

*** This bug has been marked as a duplicate of bug 61558 ***


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-29  9:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-28 23:06 [Bug c++/62299] New: [4.9/5 regression] ICE with __attribute__((__weakref__(""))) and __thread lucdanton at free dot fr
2014-08-29  8:58 ` [Bug c++/62299] " rguenth at gcc dot gnu.org
2014-08-29  9:05 ` trippels 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).