* Fail to compile libstdc++ with concepts on clang experimental version
@ 2019-10-09 21:18 sotrdg sotrdg
2019-10-10 7:07 ` Jonathan Wakely
0 siblings, 1 reply; 2+ messages in thread
From: sotrdg sotrdg @ 2019-10-09 21:18 UTC (permalink / raw)
To: libstdc++
https://github.com/saarraz/clang-concepts-monorepo/issues/26
https://github.com/euloanty/fast_io
This project
/usr/local/bin/clang++ -Xclang -fconcepts-ts -ffast-math -std=gnu++2a -MD -MT CMakeFiles/integer_scientific.dir/0009.floating_point/integer_scientific.cc.o -MF CMakeFiles/integer_scientific.dir/0009.floating_point/integer_scientific.cc.o.d -o CMakeFiles/integer_scientific.dir/0009.floating_point/integer_scientific.cc.o -c '../0009.floating point/integer_scientific.cc'
In file included from ../0009.floating point/integer_scientific.cc:1:
In file included from ../0009.floating point/../../include/fast_io.h:9:
/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/memory:234:14: error: expected primary expression before '!'; did you forget parentheses?
requires !_Std_pair<_Tp>
^
1 error generated.
ninja: build stopped: subcommand failed.
Also. the clang compiler can't compile functions like
void f(std::unsigned_integral T)
It has to be
void f(std::unsigned_integral auto T)
It compiles it is the requirement of C++ 20.
Same with
concept bool is forbidden.
Please fix these issues. Thank you
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fail to compile libstdc++ with concepts on clang experimental version
2019-10-09 21:18 Fail to compile libstdc++ with concepts on clang experimental version sotrdg sotrdg
@ 2019-10-10 7:07 ` Jonathan Wakely
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2019-10-10 7:07 UTC (permalink / raw)
To: sotrdg sotrdg; +Cc: libstdc++
On 09/10/19 21:18 +0000, sotrdg sotrdg wrote:
>https://github.com/saarraz/clang-concepts-monorepo/issues/26
>
>https://github.com/euloanty/fast_io
>This project
>
>/usr/local/bin/clang++ -Xclang -fconcepts-ts -ffast-math -std=gnu++2a -MD -MT CMakeFiles/integer_scientific.dir/0009.floating_point/integer_scientific.cc.o -MF CMakeFiles/integer_scientific.dir/0009.floating_point/integer_scientific.cc.o.d -o CMakeFiles/integer_scientific.dir/0009.floating_point/integer_scientific.cc.o -c '../0009.floating point/integer_scientific.cc'
>In file included from ../0009.floating point/integer_scientific.cc:1:
>In file included from ../0009.floating point/../../include/fast_io.h:9:
>/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/memory:234:14: error: expected primary expression before '!'; did you forget parentheses?
>requires !_Std_pair<_Tp>
>^
>1 error generated.
>ninja: build stopped: subcommand failed.
That was already fixed three months ago.
>Also. the clang compiler can't compile functions like
>
>void f(std::unsigned_integral T)
I don't think this syntax is used anywhere in libstdc++.
>It has to be
>void f(std::unsigned_integral auto T)
>
>It compiles it is the requirement of C++ 20.
>
>Same with
>
>concept bool is forbidden.
There is no 'concept bool' anywhere in libstdc++, it was removed five
months ago.
>Please fix these issues. Thank you
Please update your GCC headers instead.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-10 7:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-09 21:18 Fail to compile libstdc++ with concepts on clang experimental version sotrdg sotrdg
2019-10-10 7:07 ` Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).