------- Comment #2 from dpovey at gmail dot com 2010-08-23 21:51 ------- (In reply to comment #1)
Yes you are right, but it is more than that bug, because I created an example where gcc wrongly *rejects* code that it should accept, as well as one where it wrongly accepts code that it should reject. BTW, Visual Studio (2010) has different behavior -- it accepts both of the statements in main(), even though they require different parse trees. However, unlike gcc, it will not *accept* the "template" keyword on the line where (for the first parse tree) it should be required. Thus, fixing this gcc bug will lead people to code in such a way that their code cannot compile in Visual Studio. Dan > Looks related to PR 11814. > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45374