gcc/libcpp
Lewis Hyatt 18cace4674
libcpp: Fix ICE lexing invalid raw string in a deferred pragma [PR117118]
The PR shows that we ICE after lexing an invalid unterminated raw string,
because lex_raw_string() pops the main buffer unexpectedly. Resolve by
handling this case the same way as for other directives.

libcpp/ChangeLog:
	PR preprocessor/117118
	* lex.cc (lex_raw_string): Treat an unterminated raw string the same
	way for a deferred pragma as is done for other directives.

gcc/testsuite/ChangeLog:
	PR preprocessor/117118
	* c-c++-common/raw-string-directive-3.c: New test.
	* c-c++-common/raw-string-directive-4.c: New test.
2024-11-23 13:44:38 -05:00
..
include Support for 64-bit location_t: libcpp preliminaries 2024-11-23 13:44:37 -05:00
po
aclocal.m4
ChangeLog Daily bump. 2024-11-19 00:19:52 +00:00
ChangeLog.jit
charset.cc
combining-chars.inc
config.in
configure
configure.ac
directives.cc
errors.cc
expr.cc c: Add _Decimal64x support 2024-11-15 08:43:48 +01:00
files.cc libcpp: add .c++-header-unit target 2024-11-18 09:18:17 +01:00
generated_cpp_wcwidth.h
identifiers.cc
init.cc c-family: add -fsearch-include-path 2024-11-17 16:23:21 +01:00
internal.h libcpp: Fix potential unaligned access in cpp_buffer 2024-11-23 13:44:37 -05:00
lex.cc libcpp: Fix ICE lexing invalid raw string in a deferred pragma [PR117118] 2024-11-23 13:44:38 -05:00
line-map.cc Support for 64-bit location_t: libcpp preliminaries 2024-11-23 13:44:37 -05:00
location-example.txt
macro.cc Support for 64-bit location_t: libcpp preliminaries 2024-11-23 13:44:37 -05:00
Makefile.in
makeucnid.cc
makeuname2c.cc
mkdeps.cc libcpp: add .c++-header-unit target 2024-11-18 09:18:17 +01:00
pch.cc
printable-chars.inc
symtab.cc
system.h
traditional.cc
ucnid.h
ucnid.tab
uname2c.h