[clang] [Clang] disallow the use of asterisks preceding constructor and destructor names (PR #122621)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 13 09:34:29 PST 2025
================
@@ -96,3 +96,49 @@ namespace PR38286 {
template<typename> struct C; // expected-note {{non-type declaration found}}
template<typename T> C<T>::~C() {} // expected-error {{identifier 'C' after '~' in destructor name does not name a type}}
}
+
+namespace GH121706 {
----------------
a-tarasyuk wrote:
@cor3ntin I've added tests to cover these cases and additional tests to address
https://eel.is/c++draft/class.conv.fct#1., if I've missed any cases from the spec, I'd appreciate it if you could point them out. thanks
https://github.com/llvm/llvm-project/pull/122621
More information about the cfe-commits
mailing list