This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
CsmCompletionExpression opExp = createTokenExp(UNARY_OPERATOR);
pushExp(opExp); // add operator as new exp
break;
case CONVERSION:
if (top.getTokenCount() > 0) {
CppTokenId firstTokId = top.getTokenID(0);
if (CppTokenId.STATIC_CAST == firstTokId ||
CppTokenId.DYNAMIC_CAST == firstTokId ||
CppTokenId.REINTERPRET_CAST == firstTokId)
{
// Postfix operator
opExp = createTokenExp(UNARY_OPERATOR);
popExp();
opExp.addParameter(top);
pushExp(opExp);
} else if (top.getParameterCount() > 0 && top.getParameter(0).getExpID() != TYPE) {
// Postfix operator after PARENTHESIS
opExp.addParameter(createTokenExp(PARENTHESIS, top, true));
} else {
errorState = true;
}
case VARIABLE: // is it only one permitted?
case PARENTHESIS:
case VARIABLE:
popExp(); // pop top
namespace bug256296 {
struct AAA256296 {
int field;
};
int foo256296() {
AAA256296 *pointer = 0;
return ((pointer)++)->field;
performTest("bug255900.h", 4, 9, "bug255900.cpp", 1, 1);
public void testBug256296() throws Exception {
// Bug 256296 - Additional parens in expression break parser
performTest("bug256296.cpp", 8, 32, "bug256296.cpp", 3, 9);
public static class Failed extends HyperlinkBaseTestCase {
@Override