This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33176] strange diagnostic with "if (a) && b"
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Aug 2007 01:02:47 -0000
- Subject: [Bug c++/33176] strange diagnostic with "if (a) && b"
- References: <bug-33176-6594@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from igodard at pacbell dot net 2007-08-29 01:02 -------
Why does it think a template is a label? I would understand if the code were:
lab: if (i == 0) && lab) ...
but it knows that "confirm" is a function template at this point, and can't be
a future label.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33176