https://bugs.llvm.org/show_bug.cgi?id=51399
Aaron Ballman <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEW |RESOLVED
CC| |[email protected]
--- Comment #1 from Aaron Ballman <[email protected]> ---
My reading of the standard says that Clang is correct to diagnose here. Given
the declaration:
```
field_t<name="degrees"> degrees;
```
This is a simple-declaration whose only decl-specifier is comprised of
simple-type-specifier which is eventually a simple-template-id
(http://eel.is/c++draft/temp.names#nt:simple-template-id). The
template-argument (http://eel.is/c++draft/temp.names#nt:template-argument) for
simple-template-id is not a valid constant-expression because of precedence
rules (http://eel.is/c++draft/expr.const#nt:constant-expression).
I believe that wrapping the expression in parentheses is the correct way to
work around the precedence issue.
Closing as WONTFIX because this appears to be behaving according to
specification. However, if you think my analysis here is incorrect, please
reopen the bug with more details.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs