News for hackers. Stuff that matters.
Re:Parsing C++ is literally undecidable (2013) by petters on Friday October 04, 2019 @02:35AM (#21155341)
> If it is not SomeType, then ::name is a typedef for int and the parse tree is declaring a pointer-to-int named x.

Doesn't this require "typename" at the beginning of the line?

Re:Parsing C++ is literally undecidable (2013) by MauranKilom on Friday October 04, 2019 @02:49AM (#21155411)
No, not in this instance. typename is needed to mark dependent names as types, but you can only have dependent (i.e. on a template parameter) names within templates.