diff options
author | Neil Booth <neilb@earthling.net> | 2000-11-04 11:13:22 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-11-04 11:13:22 +0000 |
commit | 16eb27887703461f7f215a4ea8d3227c95ec1e12 (patch) | |
tree | df97ccb4bb74a2b5e560a41dad490b8afdc40f9c /gcc/cpplex.c | |
parent | 9232b7d9c61cf0459d5d0323d2377ceb6f4ec9a0 (diff) | |
download | gcc-16eb27887703461f7f215a4ea8d3227c95ec1e12.zip gcc-16eb27887703461f7f215a4ea8d3227c95ec1e12.tar.gz gcc-16eb27887703461f7f215a4ea8d3227c95ec1e12.tar.bz2 |
cpplex.c (parse_string): Don't allow multiline strings in #include family directives.
* cpplex.c (parse_string): Don't allow multiline strings in
#include family directives.
From-SVN: r37250
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 68ceb36..86dbf5a 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -675,8 +675,8 @@ parse_string (pfile, token, terminator) /* Character constants and header names may not extend over multiple lines. In Standard C, neither may strings. Unfortunately, we accept multiline strings as an - extension. */ - if (terminator != '"') + extension, except in #include family directives. */ + if (terminator != '"' || pfile->state.angled_headers) { unterminated (pfile, terminator); break; |