This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33744] function-style cast not allowed in template argument
- From: "mdorey at bluearc dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2007 13:19:43 -0000
- Subject: [Bug c++/33744] function-style cast not allowed in template argument
- References: <bug-33744-28@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from mdorey at bluearc dot com 2007-10-12 13:19 -------
(I'm told that) these two function-style casts compile fine on 4.2.1:
template <bool cond>
struct A {
};
A<bool (2)> y;
A<bool (2 < 1)> z;
This is why I suggest the greater-than is a necessary part of the bug. Do you
have a counter-example, Wolfgang - where the greater-than sign isn't necessary
to cause the same failure?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33744