[Bug c++/51664] comparison incorrectly treated as template instantiation

2011-12-23 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51664 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/51664] comparison incorrectly treated as template instantiation

2011-12-23 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51664 --- Comment #5 from Jonathan Wakely 2011-12-23 14:41:17 UTC --- Richard: yes. [temp.names] p3 says -3- After name lookup (3.4) finds that a name is a template-name or that an operator-function-id or a literal-operator-id refers to a set of overl

[Bug c++/51664] comparison incorrectly treated as template instantiation

2011-12-23 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51664 Paolo Carlini changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comment #4 f

[Bug c++/51664] comparison incorrectly treated as template instantiation

2011-12-23 Thread timon.gehr at gmx dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51664 --- Comment #3 from Timon Gehr 2011-12-23 14:02:49 UTC --- (In reply to comment #1) > I don't think it's valid, Clang and EDG reject it too DMC accepts it.

[Bug c++/51664] comparison incorrectly treated as template instantiation

2011-12-23 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51664 --- Comment #2 from Richard Guenther 2011-12-23 13:47:04 UTC --- wasn't the template keyword meant to avoid this ambiguity? Thus, if x.foo is a template then you are required to write x.template foo because x is template dependent?

[Bug c++/51664] comparison incorrectly treated as template instantiation

2011-12-23 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51664 --- Comment #1 from Jonathan Wakely 2011-12-23 13:41:04 UTC --- I don't think it's valid, Clang and EDG reject it too