From: Stefan S. <se...@sy...> - 2004-07-16 01:57:48
|
hi there, The following valid code doesn't parse with opencxx: --- template <typename T> void Foo(); void (*bar)() = &Foo<int>; --- I'll look into it, but in case someone else (Grzegorz, Chiba ?) has an idea, I'll send it to the list. Here is the call graph: rInitializeExpr rExpression rConditionalExpr rLogicalOrExpr rLogicalAndExpr rInclusiveOrExpr rExclusiveOrExpr rAndExpr rEqualityExpr rRelationalExpr rShiftExpr and there it happens: the parser just read the 'shift expression' ('[& Foo]'), and now runs into the '<', which it wrongly interprets as a relational operator. What can I do to resolve this conflict ? Kind regards, Stefan |