* g++.dg/parse/operator1.C: New test.

From-SVN: r60741
This commit is contained in:
Nathanael Nerode 2003-01-01 12:36:31 +00:00
parent c58b209a5d
commit 65ed8728e6
2 changed files with 15 additions and 0 deletions

View File

@ -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.

View 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
}