[Bug c++/102536] New: [modules] ICE Error reporting routines re-entered
johelegp at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Sep 30 02:54:45 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102536
Bug ID: 102536
Summary: [modules] ICE Error reporting routines re-entered
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: johelegp at gmail dot com
CC: johelegp at gmail dot com
Target Milestone: ---
See https://godbolt.org/z/ehPzxqzWK.
mod.cpp:
```C++
export module mod;
namespace mod {
export struct X {
X() { }
constexpr void f() {
[](auto) { }(0);
}
};
}
```
test.cpp:
```C++
import mod;
int main() {
mod::X{}.f();
}
```
```
Internal compiler error: Error reporting routines re-entered.
0x1fe6b9d error_at(unsigned int, char const*, ...)
???:0
0x989719 lazy_load_pendings(tree_node*)
???:0
0x994388 get_class_binding(tree_node*, tree_node*, bool)
???:0
0xa953ce dfs_walk_all(tree_node*, tree_node* (*)(tree_node*, void*), tree_node*
(*)(tree_node*, void*), void*)
???:0
0xa9558c lookup_member(tree_node*, tree_node*, int, bool, int,
access_failure_info*)
???:0
0x91b9aa lambda_function(tree_node*)
???:0
0x2003411 pp_format(pretty_printer*, text_info*)
???:0
0x2003a90 pp_format_verbatim(pretty_printer*, text_info*)
???:0
0x2003b71 pp_verbatim(pretty_printer*, char const*, ...)
???:0
0x1fe5b51 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
???:0
0x1fe6b9d error_at(unsigned int, char const*, ...)
???:0
0x989719 lazy_load_pendings(tree_node*)
???:0
0x994388 get_class_binding(tree_node*, tree_node*, bool)
???:0
0xa953ce dfs_walk_all(tree_node*, tree_node* (*)(tree_node*, void*), tree_node*
(*)(tree_node*, void*), void*)
???:0
0xa9558c lookup_member(tree_node*, tree_node*, int, bool, int,
access_failure_info*)
???:0
0x91b9aa lambda_function(tree_node*)
???:0
0x93419b mangle_decl(tree_node*)
???:0
0x14c5f02 decl_assembler_name(tree_node*)
???:0
0xc70f8a cgraph_node::finalize_function(tree_node*, bool)
???:0
0x9873f8 module_state::read_cluster(unsigned int)
???:0
```
More information about the Gcc-bugs
mailing list