Repository navigation
Crash on a function-style cast to _BitInt(N) #578
gwllx
started this conversation in
Issue Triage - Compilation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Issue Summary
The front end segfaults on a function-style type conversion such as
_BitInt(8)(1)or_BitInt(8){}.Reproducing Source Code
Any of the above lines reproduces the issue.
https://godbolt.org/z/9oKjvfMbE
Command-line Options
cpfe --c++23 --clang_version=220100
Type of Issue
[Front End] This code SHOULD compile with these options.
Additional Details
scan_expr_fullsendstok_bit_precise_intto thetype_startcase, which callstype_keyword. That function has no_BitIntcase and returns null. Later,skip_typerefs_not_typedefs_or_type_operatorsdereferences the null type.Reproducing (Standard) Configuration(s)
linux-gcc-release
Reproducing (Non-standard) Configuration
No response
I acknowledge that:
LICENSE.txtfile in my.zipor.tar.gzupload. If I included aLICENSE.txtfile, any tests created using the reproducing source code will be governed by the terms of the license I provided instead.All reactions