https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99285
Bug ID: 99285 Summary: [modules] ICE canonical types differ for identical types ‘std::common_type... Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: alexander.lelyakin at googlemail dot com Target Milestone: --- g++ -std=c++20 -fmodules-ts -x c++-system-header atomic g++ -std=c++20 -fmodules-ts -x c++-system-header locale g++ -std=c++20 -fmodules-ts -x c++-system-header stop_token ---- In file included from /usr/local/include/c++/11.0.1/bits/atomic_timed_wait.h:40, from /usr/local/include/c++/11.0.1/bits/semaphore_base.h:37, from /usr/local/include/c++/11.0.1/semaphore:35, from /usr/local/include/c++/11.0.1/stop_token:37: /usr/local/include/c++/11.0.1/chrono:665:64: internal compiler error: canonical types differ for identical types ‘std::common_type<_Rep1, _Rep2>’ and ‘std::common_type<_Tp1, _Tp2>’ 665 | typename _CRep = typename common_type<_Rep1, _Rep2>::type> | ^ 0xb7c74f comptypes(tree_node*, tree_node*, int) ../../gcc/gcc/cp/typeck.c:1540 0xb473b2 fixup_template_type ../../gcc/gcc/cp/semantics.c:3477 0xb473b2 finish_template_type(tree_node*, tree_node*, int) ../../gcc/gcc/cp/semantics.c:3510 0xab96c1 cp_parser_template_id ../../gcc/gcc/cp/parser.c:17397 0xab98ab cp_parser_class_name ../../gcc/gcc/cp/parser.c:24624 0xab0e3a cp_parser_qualifying_entity ../../gcc/gcc/cp/parser.c:6994 0xab0e3a cp_parser_nested_name_specifier_opt ../../gcc/gcc/cp/parser.c:6676 0xabfc5f cp_parser_nested_name_specifier ../../gcc/gcc/cp/parser.c:6920 0xabfc5f cp_parser_elaborated_type_specifier ../../gcc/gcc/cp/parser.c:19372 0xaa5395 cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:18398 0xab70f3 cp_parser_type_specifier_seq ../../gcc/gcc/cp/parser.c:23299 0xab5774 cp_parser_type_id_1 ../../gcc/gcc/cp/parser.c:23102 0xab5a04 cp_parser_type_id ../../gcc/gcc/cp/parser.c:23195 0xab5a04 cp_parser_default_type_template_argument ../../gcc/gcc/cp/parser.c:16843 0xac350f cp_parser_type_parameter ../../gcc/gcc/cp/parser.c:17079 0xac27af cp_parser_template_parameter ../../gcc/gcc/cp/parser.c:16930 0xac27af cp_parser_template_parameter_list ../../gcc/gcc/cp/parser.c:16563 0xad17f2 cp_parser_explicit_template_declaration ../../gcc/gcc/cp/parser.c:30257 0xad3fd9 cp_parser_declaration ../../gcc/gcc/cp/parser.c:14000 0xad3579 cp_parser_toplevel_declaration ../../gcc/gcc/cp/parser.c:14098 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. ---- g++ (GCC) 11.0.1 20210225 (experimental) Copyright (C) 2021 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.