This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33744] function-style cast not allowed in template argument



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]