aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaModule.cpp
diff options
context:
space:
mode:
authorSirraide <aeternalmail@gmail.com>2025-04-16 14:08:59 +0200
committerGitHub <noreply@github.com>2025-04-16 14:08:59 +0200
commit616613c80b75614736d0781d12c0e1237d79738f (patch)
treee19a7791dfa1321818f70acac25b4e3bb0472244 /clang/lib/Sema/SemaModule.cpp
parent27c1aa9b9cf9e0b14211758ff8f7d3aaba24ffcf (diff)
downloadllvm-616613c80b75614736d0781d12c0e1237d79738f.zip
llvm-616613c80b75614736d0781d12c0e1237d79738f.tar.gz
llvm-616613c80b75614736d0781d12c0e1237d79738f.tar.bz2
[Clang] [Sema] Fix a crash when a `friend` function is redefined as deleted (#135679)
NB: This only fixes the crash introduced in Clang 19; we still accept this code even though we shouldn’t: ```c++ struct S { friend int f() { return 3; } friend int f() = delete; }; ``` I tried figuring out a way to diagnose this redeclaration, but it seems tricky because I kept running into issues around defaulted comparison operators. From my testing, however, this fix here would still be required even once we do start diagnosing this. Fixes #135506.
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions