https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83014
Bug ID: 83014
Summary: ICE in pretty-print with -fsanitize=bounds
Product: gcc
Version: 6.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: ghjghj530-bubu at yahoo dot de
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at
gcc dot gnu.org
Target Milestone: ---
Compiling the following testcode leads to an internal compiler error
int setArrayElemment()
{
int data[5];
data[5] = 0;
return data[0];
}
int main()
{
}
Compile with GCC 6.3 or 5.3
gcc.exe C:\temp\test.cpp -c -fsanitize=bounds
or
gcc.exe C:\temp\test.cpp -c -fsanitize=undefined
Leads to:
c:\temp\test.cpp: In function 'int setArrayElemment()':
c:\temp\test.cpp:1:5: internal compiler error: in pp_format, at
pretty-print.c:630
int setArrayElemment()
^~~~~~~~~~~~~~~~
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
c:\temp\test.cpp:1:5: internal compiler error: Aborted
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.