[clang] [Clang] disallow the use of asterisks preceding constructor and destructor names (PR #122621)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 13 12:09:11 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 {
----------------
cor3ntin wrote:

That wording is for conversion operators https://compiler-explorer.com/z/bE8rv8qTv

https://github.com/llvm/llvm-project/pull/122621


More information about the cfe-commits mailing list