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

2007-10-12 Thread bangerth at dealii dot org
--- 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

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

2007-10-12 Thread mdorey at bluearc dot com
--- 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 { }; Abool (2) y; Abool (2 1) z; This is why I suggest the greater-than is a necessary part of the bug. Do you have a

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

2007-10-12 Thread bangerth at dealii dot org
--- 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