summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbangerth <bangerth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-30 19:01:08 +0000
committerbangerth <bangerth@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-30 19:01:08 +0000
commitce4e64edfef140252420b4a14342f0ba20687411 (patch)
tree1d63ee69a869ad6bb008a85cf055d732ff52fe66
parent15eae67d74117f5af89380cca1a7dae29da2a9aa (diff)
downloadppe42-gcc-ce4e64edfef140252420b4a14342f0ba20687411.tar.gz
ppe42-gcc-ce4e64edfef140252420b4a14342f0ba20687411.zip
2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
* g++.dg/other/error6.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68723 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.dg/other/error6.C19
2 files changed, 24 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5163f6278cd..ae6c4171bed 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,4 +1,8 @@
-2003-06-17 Giovanni Bajo <giovannibajo@libero.it>
+2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
+
+ * g++.dg/other/error6.C: New test.
+
+2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
PR c++/10750
* g++.dg/parse/constant2.C: New test.
diff --git a/gcc/testsuite/g++.dg/other/error6.C b/gcc/testsuite/g++.dg/other/error6.C
new file mode 100644
index 00000000000..9b403c7207b
--- /dev/null
+++ b/gcc/testsuite/g++.dg/other/error6.C
@@ -0,0 +1,19 @@
+// { dg-do compile }
+// Make sure we emit a decent error message when trying to mangle an
+// expression not supported by the C++ ABI due to a defect.
+
+template <int N>
+struct A {};
+
+struct B
+{
+ static int foo(void);
+};
+
+template <class T>
+A<sizeof(T::foo())> func(void);
+
+int main()
+{
+ func<B>(); // { dg-error "sorry, unimplemented" }
+}
OpenPOWER on IntegriCloud