r175005 - Add a test for r174980, that we used to accept
Dmitri Gribenko
gribozavr at gmail.com
Tue Feb 12 12:43:41 PST 2013
Author: gribozavr
Date: Tue Feb 12 14:43:41 2013
New Revision: 175005
URL: http://llvm.org/viewvc/llvm-project?rev=175005&view=rev
Log:
Add a test for r174980, that we used to accept
Modified:
cfe/trunk/test/CXX/special/class.ctor/p1.cpp
Modified: cfe/trunk/test/CXX/special/class.ctor/p1.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/special/class.ctor/p1.cpp?rev=175005&r1=175004&r2=175005&view=diff
==============================================================================
--- cfe/trunk/test/CXX/special/class.ctor/p1.cpp (original)
+++ cfe/trunk/test/CXX/special/class.ctor/p1.cpp Tue Feb 12 14:43:41 2013
@@ -42,6 +42,14 @@ template<typename T> (X1<T>::X1)(double)
template<typename T> X1<T> X1<T>::f1(int) { return 0; }
template<typename T> X1<T> (X1<T>::f1)(type) { return 0; }
-class A {
- A::A(); // expected-error{{extra qualification on member 'A'}}
+class X2 {
+ X2::X2(); // expected-error {{extra qualification on member 'X2'}}
};
+
+// We used to parse 'X3::X3' as a member function declaration.
+// DR 1435 and DR 1310 made this invalid.
+typedef int T1;
+struct X3 {
+ X3::X3(T1()); // expected-error {{extra qualification on member 'X3'}}
+};
+
More information about the cfe-commits
mailing list