[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 redi at gcc dot gnu.org 2011-12-23 13:41:04 UTC --- I don't think it's valid, Clang and EDG reject it too

[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 rguenth at gcc dot gnu.org 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

[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 timon.gehr at gmx dot ch 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 paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51664 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added CC||jason at

[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 redi at gcc dot gnu.org 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

[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 pinskia at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED