public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106849] New: internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841
@ 2022-09-06 13:50 redi at gcc dot gnu.org
2023-11-02 19:03 ` [Bug c++/106849] " pinskia at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2022-09-06 13:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106849
Bug ID: 106849
Summary: internal compiler error: tree check: expected none of
template_decl, have template_decl in
do_nonmember_using_decl, at cp/name-lookup.cc:4841
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Blocks: 103524
Target Milestone: ---
I don't know if this is valid, but it shouldn't ICE:
export module lib;
namespace outer {
template<typename T> void any_of(T) { }
}
export using outer::any_of;
$ ~/gcc/13/bin/gcc -c -std=c++23 -fmodules-ts lib.cc
lib.cc:7:21: internal compiler error: tree check: expected none of
template_decl, have template_decl in do_nonmember_using_decl, at
cp/name-lookup.cc:4841
7 | export using outer::any_of;
| ^~~~~~
0x887d60 tree_not_check_failed(tree_node const*, char const*, int, char const*,
...)
/home/jwakely/src/gcc/gcc/gcc/tree.cc:8864
0x6eea80 tree_not_check(tree_node*, char const*, int, char const*, tree_code)
/home/jwakely/src/gcc/gcc/gcc/tree.h:3529
0x6eea80 do_nonmember_using_decl
/home/jwakely/src/gcc/gcc/gcc/cp/name-lookup.cc:4841
0xac2676 finish_nonmember_using_decl(tree_node*, tree_node*)
/home/jwakely/src/gcc/gcc/gcc/cp/name-lookup.cc:6284
0xacaf04 finish_using_decl
/home/jwakely/src/gcc/gcc/gcc/cp/parser.cc:21629
0xb113ce cp_parser_using_declaration
/home/jwakely/src/gcc/gcc/gcc/cp/parser.cc:21757
0xb1eba6 cp_parser_declaration
/home/jwakely/src/gcc/gcc/gcc/cp/parser.cc:15099
0xb1e794 cp_parser_module_export
/home/jwakely/src/gcc/gcc/gcc/cp/parser.cc:14844
0xb1e794 cp_parser_declaration
/home/jwakely/src/gcc/gcc/gcc/cp/parser.cc:15040
0xb1f432 cp_parser_toplevel_declaration
/home/jwakely/src/gcc/gcc/gcc/cp/parser.cc:15120
0xb1f432 cp_parser_translation_unit
/home/jwakely/src/gcc/gcc/gcc/cp/parser.cc:5068
0xb1f432 c_parse_file()
/home/jwakely/src/gcc/gcc/gcc/cp/parser.cc:48594
0xc57221 c_common_parse_file()
/home/jwakely/src/gcc/gcc/gcc/c-family/c-opts.cc:1255
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524
[Bug 103524] [meta-bug] modules issue
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/106849] internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841
2022-09-06 13:50 [Bug c++/106849] New: internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841 redi at gcc dot gnu.org
@ 2023-11-02 19:03 ` pinskia at gcc dot gnu.org
2023-11-02 19:05 ` davidfromonline at gmail dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-02 19:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106849
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |davidfromonline at gmail dot com
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 112355 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/106849] internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841
2022-09-06 13:50 [Bug c++/106849] New: internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841 redi at gcc dot gnu.org
2023-11-02 19:03 ` [Bug c++/106849] " pinskia at gcc dot gnu.org
@ 2023-11-02 19:05 ` davidfromonline at gmail dot com
2023-11-02 19:06 ` davidfromonline at gmail dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: davidfromonline at gmail dot com @ 2023-11-02 19:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106849
--- Comment #2 from David Stone <davidfromonline at gmail dot com> ---
Looks like it works in 13.2 but fails in trunk.
13.2: https://godbolt.org/z/d54ToW7zW
trunk: https://godbolt.org/z/eej9d7ccM
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/106849] internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841
2022-09-06 13:50 [Bug c++/106849] New: internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841 redi at gcc dot gnu.org
2023-11-02 19:03 ` [Bug c++/106849] " pinskia at gcc dot gnu.org
2023-11-02 19:05 ` davidfromonline at gmail dot com
@ 2023-11-02 19:06 ` davidfromonline at gmail dot com
2023-11-14 19:43 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: davidfromonline at gmail dot com @ 2023-11-02 19:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106849
--- Comment #3 from David Stone <davidfromonline at gmail dot com> ---
Oh, as per https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112355#c3 it's just
that the 13.2 build isn't checked, so it's not a new bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/106849] internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841
2022-09-06 13:50 [Bug c++/106849] New: internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841 redi at gcc dot gnu.org
` (2 preceding siblings ...)
2023-11-02 19:06 ` davidfromonline at gmail dot com
@ 2023-11-14 19:43 ` cvs-commit at gcc dot gnu.org
2023-11-15 6:31 ` sjames at gcc dot gnu.org
2024-02-11 13:33 ` nshead at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-14 19:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106849
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathan Sidwell <nathan@gcc.gnu.org>:
https://gcc.gnu.org/g:5b9ecce87e8f315e2681743d75401991cdfefa71
commit r14-5460-g5b9ecce87e8f315e2681743d75401991cdfefa71
Author: Nathaniel Shead <nathanieloshead@gmail.com>
Date: Thu Nov 9 19:05:09 2023 -0500
c++: Fix exported using decls of templates
We need to look at DECL_TEMPLATE_RESULT to get the module attachment.
PR c++/106849
gcc/cp/ChangeLog:
* name-lookup.cc (do_nonmember_using_decl): Handle
TEMPLATE_DECLs when checking module attachment.
gcc/testsuite/ChangeLog:
* g++.dg/modules/using-9.C: New test.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Signed-off-by: Nathan Sidwell <nathan@acm.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/106849] internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841
2022-09-06 13:50 [Bug c++/106849] New: internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841 redi at gcc dot gnu.org
` (3 preceding siblings ...)
2023-11-14 19:43 ` cvs-commit at gcc dot gnu.org
@ 2023-11-15 6:31 ` sjames at gcc dot gnu.org
2024-02-11 13:33 ` nshead at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-15 6:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106849
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-checking
Ever confirmed|0 |1
CC| |nathan at gcc dot gnu.org
Last reconfirmed| |2023-11-15
Status|UNCONFIRMED |NEW
--- Comment #5 from Sam James <sjames at gcc dot gnu.org> ---
Fixed for 14 then?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/106849] internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841
2022-09-06 13:50 [Bug c++/106849] New: internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841 redi at gcc dot gnu.org
` (4 preceding siblings ...)
2023-11-15 6:31 ` sjames at gcc dot gnu.org
@ 2024-02-11 13:33 ` nshead at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: nshead at gcc dot gnu.org @ 2024-02-11 13:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106849
Nathaniel Shead <nshead at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |14.0
Assignee|unassigned at gcc dot gnu.org |nshead at gcc dot gnu.org
CC| |nshead at gcc dot gnu.org
--- Comment #6 from Nathaniel Shead <nshead at gcc dot gnu.org> ---
Fixed for GCC 14.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-02-11 13:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06 13:50 [Bug c++/106849] New: internal compiler error: tree check: expected none of template_decl, have template_decl in do_nonmember_using_decl, at cp/name-lookup.cc:4841 redi at gcc dot gnu.org
2023-11-02 19:03 ` [Bug c++/106849] " pinskia at gcc dot gnu.org
2023-11-02 19:05 ` davidfromonline at gmail dot com
2023-11-02 19:06 ` davidfromonline at gmail dot com
2023-11-14 19:43 ` cvs-commit at gcc dot gnu.org
2023-11-15 6:31 ` sjames at gcc dot gnu.org
2024-02-11 13:33 ` nshead 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).