[Bug c++/96355] [concepts] internal compiler error: in tsubst_pack_expansion, at cp/pt.c:12928

2020-08-18 Thread rwdougla at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96355 Robert Douglas changed: What|Removed |Added CC||rwdougla at gmail dot com --- Comment

[Bug c++/91073] New: if constexpr no longer works directly with Concepts

2019-07-03 Thread rwdougla at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rwdougla at gmail dot com Target Milestone: --- It appears I can no longer use a Concept within the if-constexpr's expression. I receive the error: :26:58: error: expected unqualified-id before ')'

[Bug c++/81971] New: internal compiler error: in check_noexcept_r, at cp/except.c:1028

2017-08-24 Thread rwdougla at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rwdougla at gmail dot com Target Milestone: --- int foo(int) { return 0; } template struct Foo { bool val = requires { {foo(T{})} -> int; }; }; int main() { Fo

[Bug c++/82171] New: Cant use std::declval in concept testing map operator[]

2017-09-10 Thread rwdougla at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rwdougla at gmail dot com Target Milestone: --- static_assert fires inside c++/7.2.0/type_traits:2259:7 Godbolt link: https://godbolt.org/g/raan9j Pasted here: (compiler flags are -std=c++1z

[Bug c++/82171] Cant use std::declval in concept testing map operator[]

2017-09-10 Thread rwdougla at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82171 --- Comment #1 from Robert Douglas --- I came about this, transitioning from habits using SFINAE. I have just realized I can simplify it to: template concept bool MapLike = requires(T t) { {t[typename T::value_type::first_type{}]} ->