* g++.dg/parse/operator1.C: New test.
From-SVN: r60741
This commit is contained in:
parent
c58b209a5d
commit
65ed8728e6
@ -1,3 +1,7 @@
|
||||
2003-01-01 Nathanael Nerode <neroden@gcc.gnu.org>
|
||||
|
||||
* g++.dg/parse/operator1.C: New test.
|
||||
|
||||
2003-01-01 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
|
||||
|
||||
* g++.old-deja/g++.jason/ambig3.C: Remove XFAIL.
|
||||
|
11
gcc/testsuite/g++.dg/parse/operator1.C
Normal file
11
gcc/testsuite/g++.dg/parse/operator1.C
Normal file
@ -0,0 +1,11 @@
|
||||
/* PR c++/8982 */
|
||||
/* { dg-do compile } */
|
||||
namespace foo {
|
||||
template<class X>
|
||||
int operator- (X x);
|
||||
}
|
||||
|
||||
int main() {
|
||||
using foo::operator-; // syntax error under gcc 3.2
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user