HomePhabricator

PR46231: Promote diagnostic for 'template<...>;' from ExtWarn to Error.

Authored by rsmith on Jul 29 2020, 12:29 PM.

Description

PR46231: Promote diagnostic for 'template<...>;' from ExtWarn to Error.

No other compiler accepts this as an extension, not even in permissive
mode. We're not doing anyone any favors by allowing this, and it's
unlikely to be at all common, even in Clang-only code, in the wild.

Details

Committed
rsmithJul 29 2020, 12:35 PM
Parents
rGdecfdb8ce3d5: [AMDGPU] Fixed formatting in GCNHazardRecognizer.cpp. NFC.
Branches
Unknown
Tags
Unknown

Event Timeline

nick added a subscriber: nick.Aug 19 2020, 10:10 AM

FYI: this breaks some msvc compatibility

template <class> class X {};
template X<int>;

https://godbolt.org/z/sxKeGM