[llvm-bugs] [Bug 37969] New: Incorrect ownership of implicit declarations of things like operator delete
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 27 11:18:27 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37969
Bug ID: 37969
Summary: Incorrect ownership of implicit declarations of things
like operator delete
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Modules
Assignee: unassignedclangbugs at nondot.org
Reporter: dblaikie at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
foo.cppm:
export module foo
void f(int *x) {
delete x;
}
bar.cpp:
void operator delete(void*)noexcept(true);
$ clang++ -fmodules-ts -c -std=c++17 --precompile foo.cppm
$ clang++ -fmodules-ts -c -std=c++17 bar.cpp -fmodule-file=foo.pcm
bar.cpp:2:6: error: declaration of 'operator delete' in the global module
follows declaration in module foo
void operator delete(void *)noexcept(true);
^
note: previous declaration is here
1 error generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180627/1a684053/attachment.html>
More information about the llvm-bugs
mailing list