mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-15 04:05:38 +02:00
bug 178059
This commit is contained in:
parent
e39c9dace5
commit
7195ef8aca
2 changed files with 14 additions and 1 deletions
|
@ -5490,4 +5490,17 @@ public class AST2CPPTests extends AST2BaseTest {
|
||||||
StringBuffer buffer = getContents(1)[0];
|
StringBuffer buffer = getContents(1)[0];
|
||||||
parse( buffer.toString(), ParserLanguage.CPP, true, true );
|
parse( buffer.toString(), ParserLanguage.CPP, true, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testBug178059() throws Exception {
|
||||||
|
StringBuffer buffer = new StringBuffer();
|
||||||
|
buffer.append( "class A { \n"); //$NON-NLS-1$
|
||||||
|
buffer.append( " double operator*(const A&); \n"); //$NON-NLS-1$
|
||||||
|
buffer.append( "}; \n"); //$NON-NLS-1$
|
||||||
|
buffer.append( "class B : public A { \n"); //$NON-NLS-1$
|
||||||
|
buffer.append( " double operator*(double); \n"); //$NON-NLS-1$
|
||||||
|
buffer.append( " using A::operator*; \n"); //$NON-NLS-1$
|
||||||
|
buffer.append( "} \n"); //$NON-NLS-1$
|
||||||
|
|
||||||
|
parse( buffer.toString(), ParserLanguage.CPP, true, true );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2075,7 +2075,7 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
consume();
|
consume();
|
||||||
}
|
}
|
||||||
|
|
||||||
IASTName name = createName(name());
|
IASTName name = idExpression();
|
||||||
int end;
|
int end;
|
||||||
switch (LT(1)) {
|
switch (LT(1)) {
|
||||||
case IToken.tSEMI:
|
case IToken.tSEMI:
|
||||||
|
|
Loading…
Add table
Reference in a new issue