Files
clang-p2996/clang/test/Parser/attr-order.cpp
Elizabeth Andrews cecd8471e4 [Clang][Parser] Accept GNU attributes preceding C++ attributes on templates
Clang was rejecting valid code where GNU style attributes preceded C++ style
attributes in template declarations as follows:

template<int a>
__attribute__((deprecated("oh no!"))) [[deprecated("oh no!")]] void foo();

This PR fixes the bug.

Differential Revision: https://reviews.llvm.org/D151837
2023-06-02 08:11:18 -07:00

1.7 KiB