This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/64171] Hang whilst printing error message on invalid code


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

Ville Voutilainen <ville.voutilainen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-12-08
                 CC|                            |ville.voutilainen at gmail dot com
     Ever confirmed|0                           |1

--- Comment #1 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
The test ICEs on trunk:

[ville@localhost ~]$ g++ --std=c++1y -c 64171.cpp 
64171.cpp:12:31: error: conflicting declaration âstd::unordered_map<int, X>
X::varâ
 std::unordered_map<int, X> X::var = {
                               ^
64171.cpp:8:45: note: previous declaration as âconst std::unordered_map<int, X>
X::varâ
     static const std::unordered_map<int, X> var;
                                             ^
64171.cpp:12:31: error: declaration of âconst std::unordered_map<int, X>
X::varâ outside of class is not definition [-fpermissive]
 std::unordered_map<int, X> X::var = {
                               ^
64171.cpp: In static member function âstatic X* X::fromString()â:
64171.cpp:18:55: error: conversion from âstd::unordered_map<int,
X>::const_iterator {aka std::__detail::_Node_const_iterator<std::pair<const
int, X>, false, false>}â to non-scalar type âstd::unordered_map<int,
X>::iterator {aka std::__detail::_Node_iterator<std::pair<const int, X>, false,
false>}â requested
     std::unordered_map<int, X>::iterator it = var.find(0);
                                                       ^
At global scope:
cc1plus: internal compiler error: in record_reference, at cgraphbuild.c:87
0x8e28a3 record_reference
        ../../gcc/cgraphbuild.c:87
0xf1a76d walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hashset_traits>*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hashset_traits>*))
        ../../gcc/tree.c:11022
0xf1ad79 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*),
void*, hash_set<tree_node*, default_hashset_traits>*, tree_node*
(*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*,
hash_set<tree_node*, default_hashset_traits>*))
        ../../gcc/tree.c:11309
0x8e3386 record_references_in_initializer(tree_node*, bool)
        ../../gcc/cgraphbuild.c:426
0xf575b7 varpool_node::analyze()
        ../../gcc/varpool.c:533
0x8e914f analyze_functions
        ../../gcc/cgraphunit.c:1032
0x8e9985 symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.c:2331
0x6c1fdb cp_write_global_declarations()
        ../../gcc/cp/decl2.c:4688
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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]