public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/58624] gcc internal compiler error: Segmentaion fault in insert_to_assembler_name_hash
Date: Tue, 26 Aug 2014 12:39:00 -0000	[thread overview]
Message-ID: <bug-58624-4-adl64Pfve1@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-58624-4@http.gcc.gnu.org/bugzilla/>

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.


  parent reply	other threads:[~2014-08-26 12:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-58624-4-adl64Pfve1@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).