[llvm-bugs] [Bug 48172] New: clang-11's invocation of <coroutine> headers via -fcoroutines flag
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 13 09:04:02 PST 2020
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: unassignedclangbugs at nondot.org
Reporter: jerryajay01 at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201113/2df4b542/attachment.html>
More information about the llvm-bugs
mailing list