Clang currently doesn't diagnose the following invalid code:
void f() {
struct s { template<class> using x = int; };
}
Despite begin rejected by both GCC and the standard, in temp p2. Fixes PR26841.
Differential D18653
[Sema] Diagnose template alias declaration in local class erik.pilkington on Mar 31 2016, 9:38 AM. Authored by
Details
Clang currently doesn't diagnose the following invalid code: struct s { template<class> using x = int; }; } Despite begin rejected by both GCC and the standard, in temp p2. Fixes PR26841.
Diff Detail Event Timeline
Comment Actions Include local static data member template in test. Thanks for taking a look Richard, would you mind committing this for me? |
Can you add a test for a static data member template too, please?