https://bugs.llvm.org/show_bug.cgi?id=44978
Bug ID: 44978
Summary: Ambiguous destructor lookup after 0e3a4877840
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: dma...@mozilla.com
CC: froy...@gmail.com, htmldevelo...@gmail.com,
llvm-bugs@lists.llvm.org, neeil...@live.com,
richard-l...@metafoo.co.uk, sylves...@debian.org
After llvmorg-11-init-2485-g0e3a4877840, the following code gives an error:
---
namespace n {
class Foo {};
}
class Foo {};
using namespace n;
static void func(::Foo* p) {
p->~Foo();
}
---
<source>:10:9: error: reference to 'Foo' is ambiguous
p->~Foo();
^
<source>:5:7: note: candidate found by name lookup is 'Foo'
class Foo {};
^
<source>:2:7: note: candidate found by name lookup is 'n::Foo'
class Foo {};
---
At first glance this does not seem to be the kind of code that the commit was
targeting, though I'm not completely sure. Is the new behavior intentional?
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs