aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-02-02 13:38:10 -0500
committerJason Merrill <jason@gcc.gnu.org>2009-02-02 13:38:10 -0500
commitce6b9ebbe247f368ea9f75427b53b7065e94b0db (patch)
tree9390a44a3be5716a9169876afd42340bb7397888 /gcc/testsuite
parente007946898e3371d82dff0f9b0ec11af178be3f2 (diff)
downloadgcc-ce6b9ebbe247f368ea9f75427b53b7065e94b0db.zip
gcc-ce6b9ebbe247f368ea9f75427b53b7065e94b0db.tar.gz
gcc-ce6b9ebbe247f368ea9f75427b53b7065e94b0db.tar.bz2
re PR c++/39054 (ICE with invalid pseudo-dtor in template)
PR c++/39054 * parser.c (cp_parser_unqualified_id): Don't wrap error_mark_node in BIT_NOT_EXPR. From-SVN: r143876
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/parse/dtor14.C8
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 828af3f..d6adb2e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2009-02-02 Jason Merrill <jason@redhat.com>
+
+ PR c++/39054
+ * g++.dg/parse/dtor14.C: New test.
+
2009-02-02 Jakub Jelinek <jakub@redhat.com>
* lib/target-supports.exp
diff --git a/gcc/testsuite/g++.dg/parse/dtor14.C b/gcc/testsuite/g++.dg/parse/dtor14.C
new file mode 100644
index 0000000..6ba7a5b
--- /dev/null
+++ b/gcc/testsuite/g++.dg/parse/dtor14.C
@@ -0,0 +1,8 @@
+// PR c++/39054
+
+struct A {};
+
+template<typename> void foo()
+{
+ A().~int(); // { dg-error "expected" }
+}