diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java index 0c2ab73cf59..c153f94ba85 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java @@ -111,6 +111,19 @@ public class AST2CPPTests extends AST2BaseTest { buffer.append( "};\n" ); //$NON-NLS-1$ parseAndCheckBindings( buffer.toString() ); } + + public void testBug103578() throws Exception { + StringBuffer buffer = new StringBuffer( "template \n" ); //$NON-NLS-1$ + buffer.append( "class WithTemplate {};\n" ); //$NON-NLS-1$ + buffer.append( "int main ()\n" ); //$NON-NLS-1$ + buffer.append( "{\n" ); //$NON-NLS-1$ + buffer.append( "WithTemplate normalInstance;\n" ); //$NON-NLS-1$ + buffer.append( "const int localConst=10;\n" ); //$NON-NLS-1$ + buffer.append( "WithTemplate brokenInstance;\n" ); //$NON-NLS-1$ + buffer.append( "return 0;\n" ); //$NON-NLS-1$ + buffer.append( "}\n" ); //$NON-NLS-1$ + parseAndCheckBindings( buffer.toString() ); + } public void testBug78103() throws Exception { StringBuffer buffer = new StringBuffer( "int *p1; int *p2;\n" ); //$NON-NLS-1$