public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/110575] New: gcc: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in build_aligned_type
@ 2023-07-06 15:13 141242068 at smail dot nju.edu.cn
2023-07-06 17:10 ` [Bug c/110575] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: 141242068 at smail dot nju.edu.cn @ 2023-07-06 15:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110575
Bug ID: 110575
Summary: gcc: internal compiler error: tree check: expected
class 'type', have 'exceptional' (error_mark) in
build_aligned_type
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
The testcase:
```
void __GIMPLE(ssa, startwith("slp")) bar() {
a = __MEM<v16si, 32>((int *restrict)b(c));
}
```
When attempting to compile this program using `gcc-14` with option `-O0`, gcc
reports internal compiler error as below:
```
<source>:1:6: error: '__GIMPLE' only valid with '-fgimple'
1 | void __GIMPLE(ssa, startwith("slp")) bar() {
| ^~~~~~~~
<source>: In function 'bar':
<source>:2:3: error: 'a' undeclared (first use in this function)
2 | a = __MEM<v16si, 32>((int *restrict)b(c));
| ^
<source>:2:3: note: each undeclared identifier is reported only once for each
function it appears in
<source>:2:13: error: unknown type name 'v16si'
2 | a = __MEM<v16si, 32>((int *restrict)b(c));
| ^~~~~
<source>:2:3: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in build_aligned_type, at tree.cc:5700
2 | a = __MEM<v16si, 32>((int *restrict)b(c));
| ^
0x213983e internal_error(char const*, ...)
???:0
0x8959fe tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
???:0
0xa7aeae c_parser_parse_gimple_body(c_parser*, char*, c_declspec_il,
profile_count)
???:0
0xa71add c_parse_file()
???:0
0xae1149 c_common_parse_file()
???:0
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.
Compiler returned: 1
```
This behavior can be verified by visiting the CompilerExplorer:
https://gcc.godbolt.org/z/8d8GGaPze
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/110575] gcc: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in build_aligned_type
2023-07-06 15:13 [Bug c/110575] New: gcc: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in build_aligned_type 141242068 at smail dot nju.edu.cn
@ 2023-07-06 17:10 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-06 17:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110575
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2023-07-06
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-06 17:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-06 15:13 [Bug c/110575] New: gcc: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in build_aligned_type 141242068 at smail dot nju.edu.cn
2023-07-06 17:10 ` [Bug c/110575] " pinskia 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).