https://bugs.llvm.org/show_bug.cgi?id=48172
Bug ID: 48172
Summary: clang-11's invocation of <coroutine> headers via
-fcoroutines flag
Product: clang
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Compiling a .cpp file that uses the coroutine library with the command.
clang-11 -std=c++20 -stdlib=libstdc++ main.cpp
The error is as follows:
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/coroutine:295:2:
error: "the coroutine header requires -fcoroutines"
#error "the coroutine header requires -fcoroutines"
Adding the -fcoroutine flag doesn't help:
clang-11 -std=c++20 -stdlib=libstdc++ main.cpp -fcoroutines
which generates the error:
clang-11: error: unknown argument: '-fcoroutines'
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs