--- 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
struct A {
};
A y;
A z;
This is why I suggest the greater-than is a necessary part of the bug. Do you
have a counter-example, Wolfgang -
--- Comment #2 from bangerth at dealii dot org 2007-10-12 13:04 ---
The rule for template non-type arguments of integral type is 14.3.2/1:
1 A template-argument for a non-type, non-template template-parameter
shall be one of:
-- an integral constant-expression of integral or e
--- Comment #1 from bangerth at dealii dot org 2007-10-12 12:52 ---
It's not the parentheses or the greater-than sign, but the cast
that triggers the error. I will have to look up whether a cast
is allowed here. For reference, icc accepts the code.
W.
--
bangerth at dealii dot org c