[llvm-bugs] [Bug 47720] New: #pragma GCC visibility push (default) doesn't work with import
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Oct 3 21:12:29 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47720
Bug ID: 47720
Summary: #pragma GCC visibility push (default) doesn't work
with import
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: david at doublewise.net
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
The following translation unit
```
#pragma GCC visibility push (default)
import <utility>;
```
When compiled with `-std=c++20 -stdlib=libc++ -fmodules` generates the
following error
```
x86-64 clang (trunk)
1
x86-64 clang (trunk)
- 596ms
<source>:3:8: error: expected a module name after 'import'
import <utility>;
^
1 error generated.
Compiler returned: 1
```
Adding in a corresponding `pop` does not resolve the issue. This occurs in
Boost.Asio headers, which means code using Boost.Asio cannot use modules.
See it live: https://godbolt.org/z/jMf89a
--
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/20201004/41d415c5/attachment.html>
More information about the llvm-bugs
mailing list