diff options
author | Bernd Schmidt <bernds@redhat.com> | 2016-03-25 10:15:39 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2016-03-25 10:15:39 -0600 |
commit | 3caf0ca1d3d1c6a65cd2437572992b9bc0a8d067 (patch) | |
tree | 9471bd17deccc2f59b0dbe6408240bdddda296b2 /gcc | |
parent | 634035b610977ac310cce45fe3b771ac2a3730d7 (diff) | |
download | gcc-3caf0ca1d3d1c6a65cd2437572992b9bc0a8d067.zip gcc-3caf0ca1d3d1c6a65cd2437572992b9bc0a8d067.tar.gz gcc-3caf0ca1d3d1c6a65cd2437572992b9bc0a8d067.tar.bz2 |
re PR preprocessor/69650 (ICE in linemap_line_start, at libcpp/line-map.c:803)
PR lto/69650
* directives.c (do_linemarker): Test for file left but not entered
here.
* line-map.c (linemap_add): Not here.
PR lto/69650
* gcc.dg/pr69650.c: New test.
From-SVN: r234481
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr69650.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0ea3a5a..396341b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-03-25 Bernd Schmidt <bschmidt@redhat.com> + + PR lto/69650 + * gcc.dg/pr69650.c: New test. + 2016-03-25 David Edelsohn <dje.gcc@gmail.com> * g++.dg/ext/pr70290.C: Prune non-standard ABI. diff --git a/gcc/testsuite/gcc.dg/pr69650.c b/gcc/testsuite/gcc.dg/pr69650.c new file mode 100644 index 0000000..decdb89 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr69650.c @@ -0,0 +1,5 @@ +/* { dg-do compile } */ +/* { dg-options "-std=gnu99" } */ + +# 9 "somefile" 2 /* { dg-warning "linemarker ignored due to incorrect nesting" } */ +not_a_type a; /* { dg-error "unknown type" } */ |