http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15672



--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-03-28 
15:13:08 UTC ---

Clang diagnoses the most vexing parse, comment 5 gets:



sf.cc:7:7: warning: parentheses were disambiguated as a function declaration

[-Wvexing-parse]

  g1 f(t<int>(c));

      ^~~~~~~~~~~

sf.cc:7:8: note: add a pair of parentheses to declare a variable

  g1 f(t<int>(c));

       ^

       (        )

Reply via email to