[Bug c++/94673] [concepts] What is the return type of local parameters of requires expressions?

2021-09-21 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94673 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added Resolution|--- |WORKSFORME

[Bug c++/94673] [concepts] What is the return type of local parameters of requires expressions?

2021-09-20 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94673 --- Comment #3 from gcc-bugs at marehr dot dialup.fu-berlin.de --- I think this bug should be changed to a request to improve the diagnostics. The diagnostic says: ``` :13:15: note: constraints not satisfied :8:9: required by the constraints

[Bug libstdc++/96416] to_address() is broken by static_assert in pointer_traits

2021-08-05 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96416 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added CC||gcc-bugs

[Bug c++/100205] [11/12 Regression] error: invalid use of non-static data member

2021-05-18 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100205 --- Comment #11 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Awesome, thank you, Jason!

[Bug libstdc++/100587] std::ranges::empty_view is not a view

2021-05-13 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100587 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added Resolution|--- |INVALID

[Bug libstdc++/100587] New: std::range::empty_view is not a view

2021-05-13 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- The following snippet does not compile: ```c++ #include static_assert(std::ranges::view); ``` https://godbolt.org/z/3qanzdrb5 The standard says that https

[Bug libstdc++/95983] `std::counted_iterator>>` fails to satisfy `std::input_or_output_iterator`

2021-05-04 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95983 --- Comment #11 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you so much!

[Bug libstdc++/100233] New: [10/11/12] std::views::elements only accepts types that are defined on std::get

2021-04-23 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, the following code will not work on custom tuples that don't add a get overload

[Bug c++/100205] [11 Regression] error: invalid use of non-static data member

2021-04-22 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100205 --- Comment #3 from gcc-bugs at marehr dot dialup.fu-berlin.de --- To be more precise my gcc build is: ``` > gcc-git -v Using built-in specs. COLLECT_GCC=/opt/gcc/gcc-git//bin/g++ COLLECT_LTO_WRAPPER=/opt/gcc/gcc-git/lib/gcc/x86_64-pc-li

[Bug c++/100205] [11 Regression] error: invalid use of non-static data member

2021-04-22 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100205 --- Comment #2 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Yeah, it compiled for me with a build from two weeks ago, too. I should have mentioned that :)

[Bug c++/100205] New: [11 Regression] error: invalid use of non-static data member

2021-04-22 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, the following code compiles with gcc-10, but does not compile with gcc-11 any more: ```cpp #include struct

[Bug libstdc++/100146] __cpp_lib_to_chars not defined

2021-04-20 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100146 --- Comment #10 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you!

[Bug libstdc++/95983] `std::counted_iterator>>` fails to satisfy `std::input_or_output_iterator`

2021-04-20 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95983 --- Comment #4 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Hi Patrick, thank you for that patch. I guess that it also fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96070. Will this patch be backported to gcc-10? Great work!

[Bug libstdc++/100146] New: __cpp_lib_to_chars not defined

2021-04-19 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, it seems that you implemented the float variants of in gcc-11. Is there a reason that you did not define `__cpp_lib_to_chars`? The following code

[Bug libstdc++/100139] New: std::views::{take, drop} don't type erase

2021-04-18 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hello gcc-team, the following code: ```cpp #include #include #include #include static_assert(std::same_as, decltype(std::views::take(std

[Bug libstdc++/99433] [11 Regression] custom friend pipe-operator| conflicts with range adaptor?

2021-04-09 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99433 --- Comment #7 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you for the quick analysis! > views​::​drop(E, F) is specified to be expression-equivalent to the braced > init ranges​::​drop_­view{E, F} Is not completely true,

[Bug libstdc++/99433] [11 Regression] custom friend pipe-operator| conflicts with range adaptor?

2021-04-08 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99433 --- Comment #5 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you for the fix, but the following code does not compile any more: ```c++ #include #include int main() { std::list list; constexpr auto drop = [](urng_t &&

[Bug c++/99599] [11 Regression] Concepts requirement falsely reporting cyclic dependency, breaks tag_invoke pattern

2021-04-02 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99599 --- Comment #3 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Hi Jason, as you linked to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97704, I'm interested if your suggestion would allow that, too? > But that's a matter for the commit

[Bug libstdc++/99433] [11 Regression] custom friend pipe-operator| conflicts with range adaptor?

2021-03-08 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99433 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added Summary|custom friend |[11

[Bug c++/99433] New: custom friend pipe-operator| conflicts with range adaptor?

2021-03-06 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hello gcc-team, the following code does not compile with gcc-11 any more, but did with gcc-10. ```c++ #include #include

[Bug rtl-optimization/99320] constexpr defined arrays within constexpr functions would benefit from lookup-tables

2021-03-01 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99320 --- Comment #2 from gcc-bugs at marehr dot dialup.fu-berlin.de --- You are right, it seems to be the same issue except that my function is constexpr, and I can't use `static constexpr ...` within the function, but Barry mentioned that use case

[Bug rtl-optimization/99320] New: constexpr defined arrays within constexpr functions would benefit from lookup-tables

2021-03-01 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, first of all, sorry if this is the wrong component, but I guess

[Bug c++/99318] New: [10/11 Regression] -Wdeprecated-declarations where non-should be?

2021-03-01 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hello gcc-team, since gcc 10 the following code throws a deprecation warning, even though it doesn't use any

[Bug c++/97745] [10 Regression] ICE in tsubst_decl, at cp/pt.c:14666

2020-12-30 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97745 --- Comment #2 from gcc-bugs at marehr dot dialup.fu-berlin.de --- This bug is fixed and can be closed. This ICE was reduced from our code base (https://github.com/seqan/seqan3/issues/2236#issuecomment-723194705).

[Bug c++/97704] [11 Regression][concepts] Not working with explicit types in function signatures?

2020-12-17 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97704 --- Comment #3 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you, Marek Polacek for finding that revision. I checked out the master branch and reverted the commit f1612b8ae8a60f62cf5456b3357a341550534a7e and now everything compiles

[Bug libstdc++/97759] Could std::has_single_bit be faster?

2020-11-09 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97759 --- Comment #10 from gcc-bugs at marehr dot dialup.fu-berlin.de --- And maybe a related question: I know that an arithmetic implementation might auto-vectorize, but would a popcount implementation do that too? Since AVX512_BITALG (https

[Bug libstdc++/97759] Could std::has_single_bit be faster?

2020-11-09 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97759 --- Comment #9 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you for so many responses (In reply to Thomas Koenig from comment #1) > Could you post the benchmark and the exact architecture where the arithmetic > version is

[Bug libstdc++/97759] Could std::has_single_bit be faster?

2020-11-09 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97759 --- Comment #7 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Created attachment 49530 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49530=edit CMakeLists.txt

[Bug libstdc++/97759] Could std::has_single_bit be faster?

2020-11-09 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97759 --- Comment #8 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Created attachment 49531 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49531=edit has_single_bit_benchmark.cpp

[Bug libstdc++/97759] New: Could std::has_single_bit implementation be faster?

2020-11-08 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hello gcc-team, we are thrilled that C++20 offers some efficient bit implementation and that we could exchange some of our own implementation

[Bug c++/97704] [11 Regression][concepts] Not working with explicit types in function signatures?

2020-11-03 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97704 --- Comment #1 from gcc-bugs at marehr dot dialup.fu-berlin.de --- I forgot to add the error message: ``` : In instantiation of 'auto hard_error(t) [with t = int]': :11:35: required by substitution of 'template requires requires{hard_error

[Bug c++/96872] [11 Regression] ICE: Segmentation fault

2020-11-03 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96872 --- Comment #2 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you; was fixed!

[Bug c++/97704] New: [11 Regression][concepts] Not working with explicit types in function signatures?

2020-11-03 Thread gcc-bugs at marehr dot dialup.fu-berlin.de via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, consider the following program: ```c++ struct non_exisiting {}; template auto hard_error

[Bug c++/96872] New: [11 Regression] ICE: Segmentation fault

2020-08-31 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, the following code ices ``` template struct concat_view { struct { template using constify_if = int; using concat_view_t = constify_if

[Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223

2020-08-31 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, the following code ices: ```c++ #include namespace seqan3 { template struct

[Bug lto/96591] New: ICE with -flto=auto and -O1: tree code ‘typename_type’ is not supported in LTO streams

2020-08-12 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de CC: marxin at gcc dot gnu.org Target Milestone: --- Hi gcc-team, I'm not sure if this is the right

[Bug libstdc++/95322] std::list | take | transform, expression does not work cbegin() == end()

2020-07-09 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95322 --- Comment #15 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you!

[Bug c++/95497] [11 Regression] ICE: concepts with a fully known / complete type in requires

2020-07-08 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95497 --- Comment #4 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you for fixing!

[Bug libstdc++/96113] std::vector | std::views::drop_while, cbegin does not work

2020-07-08 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96113 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added Resolution|--- |INVALID

[Bug libstdc++/96113] std::vector | std::views::drop_while, cbegin does not work

2020-07-08 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96113 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added Summary|std::vector | |std::vector

[Bug libstdc++/96113] New: std::vector | std::views::drop_while | std::views::reverse, cbegin does not work

2020-07-08 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, the following code does not compile: ``` #include #include int main() { std

[Bug libstdc++/96070] New: std::views::* won't work with non-legacy iterators

2020-07-05 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, not long ago a filed a bug-report[1] that `std::ranges::basic_istream_view::iterator` has no `std::iterator_traits` entry. > Y

[Bug libstdc++/96042] Reference type of std::ranges::iota is __int128 with -std=c++2a?!

2020-07-03 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96042 --- Comment #2 from gcc-bugs at marehr dot dialup.fu-berlin.de --- I think this is too easy to say that this is not a "bug", we can also weaken the terminology and say "potential-inconsistency". Technically you are rig

[Bug libstdc++/96042] New: Reference type of std::ranges::iota is __int128 with -std=c++2a?!

2020-07-02 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- The following code ```c++ #include using iota_view = std::ranges::iota_view; using reference_t = std::ranges

[Bug libstdc++/95578] std::ranges::copy and std::views::take_while don't want to play together

2020-06-11 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95578 --- Comment #5 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you for the quick response and quick fix :)

[Bug c++/95578] New: std::ranges::copy and std::views::take_while don't want to play together

2020-06-08 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, the following code does not compile (10.1.0 and trunk) ```c++ #include #include int main

[Bug c++/95497] New: [11 Regression] ICE: concepts with a fully known / complete type in requires

2020-06-03 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hello gcc-team, the following code ICEs starting with gcc-11: ```c++ template struct A{}; template

[Bug c++/95371] New: [10 Regression] ICE concepts with template template parameter

2020-05-27 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hallo gcc-team, the following code worked with gcc9, but ICEs with gcc 10.1 and in trunk ```c++ template struct

[Bug libstdc++/95322] New: std::list | take | transform, expression does not work cbegin() == end()

2020-05-25 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hello gcc-team, I'm not sure if this is intended behaviour, or if this is a defect in the standard

[Bug libstdc++/93983] std::filesystem::path is not concept-friendly

2020-05-12 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93983 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added CC||gcc-bugs

[Bug c++/94819] [10 Regression] Inherited and constrained constructors are "ambiguous" even if they aren't Pt. 2

2020-04-28 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94819 --- Comment #1 from gcc-bugs at marehr dot dialup.fu-berlin.de --- A slightly more reduced example: ```c++ #include template struct alphabet_tuple_base { template requires std::is_same_v constexpr alphabet_tuple_base

[Bug c++/94819] New: [10 Regression] Inherited and constrained constructors are "ambiguous" even if they aren't Pt. 2

2020-04-28 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, a recent report of mine https://gcc.gnu.org/bugzilla/show_bug.cg

[Bug c++/94772] New: [10 Regression] constructing constexpr variables fail with delegated constexpr constructors

2020-04-26 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc! The following code does not compile with gcc10 anymore: ```c++ struct foo

[Bug libstdc++/94674] std::ranges::basic_istream_view::iterator is missing std::iterator_traits entries

2020-04-20 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94674 --- Comment #3 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you for pointing me to this. I find this highly unexpected. There was made a change to `std::type_traits` in C++20 that sets default values, but it does not apply to all

[Bug c++/94674] New: std::ranges::basic_istream_view::iterator is missing std::iterator_traits entries

2020-04-20 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, I'm not sure if I should have named the issue `std::iterator_traits is missing default

[Bug c++/94673] [concepts] What is the return type of local parameters of requires expressions?

2020-04-20 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94673 --- Comment #1 from gcc-bugs at marehr dot dialup.fu-berlin.de --- After playing with this a bit more, I found out that clang actually behaves differently: ```c++ #include #include template concept same_as = std::is_same_v; template

[Bug c++/94673] New: [concepts] What is the return type of local parameters of requires expressions?

2020-04-20 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- What should I expect when I write the following concept: ```c++ #include #include template concept

[Bug c++/94549] New: [10 Regression] Inherited and constrained constructors are "ambiguous" even if they aren't

2020-04-10 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- The following code worked until gcc 10: ```c++ struct base { template

[Bug ipa/93799] New: [10 Regression] ice in propagate_vals_across_arith_jfunc, at ipa-cp.c:2039

2020-02-18 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de CC: marxin at gcc dot gnu.org Target Milestone: --- The following code ICEs ```c++ struct search_param { int total

[Bug c++/93667] [10 regression] ICE in esra with nested [[no_unique_address]] field

2020-02-10 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93667 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added CC||gcc-bugs

[Bug c++/93664] New: ICE: Segmentation fault on invalid concept code gcc/gcc/cp/constraint.cc:2537

2020-02-10 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, this (invalid!) code ICEs: ```c++ #include #include template concept bool semiregular

[Bug c++/93345] [10 Regression] ICE in nothrow_spec_p, at cp/except.c:1247

2020-01-24 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93345 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added CC||gcc-bugs

[Bug c++/93400] New: [10 Regression] ICE: in tsubst, at cp/pt.c:15142 on friends with concepts

2020-01-23 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- The following code ICEs on a recent gcc-10 build, but worked in gcc 9 and below: ``` template bool a = true

[Bug c++/93324] [10 Regression] ICE with -Wall on constexpr if

2020-01-23 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93324 --- Comment #5 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you! I can confirm it being fixed <3

[Bug c++/92541] ICE when concept requires contextual conversion to bool

2020-01-22 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92541 --- Comment #4 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Oh okay, how should I proceed? Create a new issue or hijack this one?

[Bug c++/92541] ICE when concept requires contextual conversion to bool

2020-01-22 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92541 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added CC||gcc-bugs

[Bug c++/93377] New: [10 Regression] ICE in tsubst_pack_expansion, at cp/pt.c:12852

2020-01-22 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- The following code worked in gcc9 and below, but fails with a recent snapshot of gcc ```c++ struct empty {}; template c

[Bug c++/93324] New: [10 Regression] ICE with -Wall on constexpr if

2020-01-19 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- The following code works on gcc 9 and below, but ICEs on gcc10 with -Wall. ``` struct { template static constexpr bool a() { return 0; } } e; template

[Bug c++/91525] ICE (Segmentation Fault) on a bool conversion operator with concepts

2020-01-07 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91525 --- Comment #3 from gcc-bugs at marehr dot dialup.fu-berlin.de --- On gcc-10 I get now the following stacktrace: ``` g++-git -std=c++17 -fconcepts -c ice.cpp main.cpp: In function ‘std::string e()’: main.cpp:46:16: internal compiler error

[Bug c++/92552] [10 Regression] internal compiler error: in lazily_declare_fn, at cp/method.c:3045 with -fconcepts

2020-01-07 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92552 --- Comment #7 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you!

[Bug c++/91525] ICE (Segmentation Fault) on a bool conversion operator with concepts

2019-12-07 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91525 --- Comment #2 from gcc-bugs at marehr dot dialup.fu-berlin.de --- This still fails and furthermore fails in `-std=c++2a` mode as well.

[Bug c++/90764] [10 Regression] internal compiler error in build_deduction_guide, at cp/pt.c:27162

2019-12-07 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90764 --- Comment #3 from gcc-bugs at marehr dot dialup.fu-berlin.de --- *** Bug 91121 has been marked as a duplicate of this bug. ***

[Bug c++/91121] ICE with type deduction guides and CRTP base class

2019-12-07 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91121 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/90764] [10 Regression] internal compiler error in build_deduction_guide, at cp/pt.c:27162

2019-12-07 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90764 --- Comment #2 from gcc-bugs at marehr dot dialup.fu-berlin.de --- This produces ``` > g++-git -std=c++17 ice.cpp ice.cpp: In instantiation of ‘void g() [with f = e]’: ice.cpp:7:17: required from here ice.cpp:6:54: error: cannot ded

[Bug c++/86037] __PRETTY_FUNCTION__ for constexpr lambda's is missing [with = type]

2019-12-07 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86037 --- Comment #1 from gcc-bugs at marehr dot dialup.fu-berlin.de --- This still persists in gcc-9.2 and gcc-10.0.

[Bug c++/92594] New: [10 Regression] internal compiler error: in build_value_init_noctor, at cp/init.c:400 using std::tuple

2019-11-20 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, the following code ices on me: ``` template

[Bug c++/92582] New: [10 Regression] internal compiler error: Segmentation fault with concept on constructor

2019-11-19 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, the following code ices: ``` #include template concept bool

[Bug c++/92552] New: [10 Regression] internal compiler error: in lazily_declare_fn, at cp/method.c:3045 with -fconcepts

2019-11-17 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Created attachment 47287 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47287=e

[Bug c++/92206] [10 Regression] ICE in strip_typedefs, at cp/tree.c:1682 since r277281

2019-10-30 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92206 --- Comment #8 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you! I can confirm that the patch resolved the issue.

[Bug c++/92206] [10 Regression] ICE in strip_typedefs, at cp/tree.c:1682 since r277281

2019-10-30 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92206 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added CC||gcc-bugs

[Bug libstdc++/91495] std::transform_reduce with unary op is implemented in the parallel case but not the basic case

2019-10-29 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91495 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added CC||gcc-bugs

[Bug c++/87768] [8 Regression] ICE in tsubst_copy_and_build, at cp/pt.c:19002 when using concepts

2019-10-23 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87768 --- Comment #6 from gcc-bugs at marehr dot dialup.fu-berlin.de --- I can confirm that this works from 9 and up. Is there any chance to backport it to 8? In the ticket it says `Target Milestone: 8.4`, does that mean there will be a 8.4 release

[Bug c++/91525] New: ICE (Segmentation Fault) on a bool conversion operator with concepts

2019-08-22 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- The following code segfaults on gcc 7 and gcc 8. It seems to be fixed in gcc 9, but a variant of the following code

[Bug c++/91121] ICE with type deduction guides and CRTP base class

2019-07-09 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91121 --- Comment #1 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Oh it might be the same one as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90764

[Bug c++/91121] New: ICE with type deduction guides and CRTP base class

2019-07-09 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hello gcc-team, the following code will ICE ```c++ template struct a { a(int); }; template struct b : a> { using a::a; }; template b(c)->b; st

[Bug c++/87768] New: ICE in tsubst_copy_and_build, at cp/pt.c:19002 when using concepts

2018-10-26 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hello gcc-team, compiling this program with `g++-8 -fconcepts -std=c++17 concept_ice.cpp` ``` struct a {}; template

[Bug c++/86037] New: __PRETTY_FUNCTION__ for constexpr lambda's is missing [with = type]

2018-06-03 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hello gcc-team, this code changed output between gcc-7 and gcc-8 ``` // pretty_function.cpp #include #include

[Bug c++/84684] inserting random code / flags produces wrong code

2018-03-05 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84684 --- Comment #6 from gcc-bugs at marehr dot dialup.fu-berlin.de --- I use now a more simpler approach for the fold expression [1], but the problem from this bug ticket still persisted when I used the same kind of assignment: for (size_t i

[Bug c++/84684] New: inserting random code / flags produces wrong code

2018-03-02 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Created attachment 43552 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43552=edit static_assert's throw even though they should not Hi gcc-t

[Bug ipa/82801] [6 Regression] Internal compiler error with Eigen and __attribute__((always_inline, flatten))

2018-01-04 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82801 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added CC||gcc-bugs

[Bug c++/83328] New: string.insert does not return a iterator when using initializer lists

2017-12-08 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hello gcc-team! According to http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4659.pdf [24.3.2.6.4] or http

[Bug c++/82410] [7/8 Regression] ICE in replace_placeholders_r

2017-10-10 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82410 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added CC||gcc-bugs

[Bug c++/82326] New: static_cast for vector extension not working?

2017-09-26 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- My problem is the following: ``` // main.cpp #include #include using int32x4_t = int32_t __attribute__ ((__vector_size__(16))); using uint32x4_t = uint32_t

[Bug c++/61806] [C++11] Expression sfinae w/o access gives hard error in partial template specializations

2017-09-25 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61806 gcc-bugs at marehr dot dialup.fu-berlin.de changed: What|Removed |Added CC||gcc-bugs

[Bug libstdc++/80251] Is the is_aggregate meta function missing?

2017-03-29 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80251 --- Comment #1 from gcc-bugs at marehr dot dialup.fu-berlin.de --- I'm sorry for the inconvenience! I didn't see that is_aggregate was just a recent addition to the standard [1]. I just wanted to see if I can check at compile time if my data

[Bug libstdc++/80251] New: Is the is_aggregate meta function missing?

2017-03-29 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Hi gcc-team, is is_aggregate [1] really missing or is it within some experimental namespaces? If I try to compile the following: ```c++ #include struct

[Bug libstdc++/80172] Segfault when using a constructed intializer list of tuple(int, variant) created through template pack expansion

2017-03-27 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80172 --- Comment #3 from gcc-bugs at marehr dot dialup.fu-berlin.de --- Thank you for your feedback! With std::array it works without a problem :)

[Bug libstdc++/80172] New: Segfault when using a constructed intializer list of tuple(int, variant) created through template pack expansion

2017-03-24 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
: 7.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Created attachment 41044 --> ht

[Bug libstdc++/80165] New: Constexpr tuple of variant doesn't work

2017-03-23 Thread gcc-bugs at marehr dot dialup.fu-berlin.de
++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de Target Milestone: --- Created attachment 41038 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41038=edit Example that a tuple of a variant can't be constructed Hi gcc-t