[Bug c++/115657] New: [15 regression] ICE in tsubst_enum/tsubst_expr during template instantiation

2024-06-25 Thread vopl at bk dot ru via Gcc-bugs
: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vopl at bk dot ru Target Milestone: --- $ cat ./ice-15.cpp && echo EOFF struct NonIntegral { constexpr oper

[Bug c++/115232] New: [14 regression] ICE during GIMPLE pass

2024-05-26 Thread vopl at bk dot ru via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: vopl at bk dot ru Target Milestone: --- $ cat ./ice-14.cpp && echo EOF // g++-14 -std=c++20 -v -c ./ice-14.cpp /0/1/2/3/4/5/6/7 template stru

[Bug c++/101222] New: unwanted templated constructor instantiation due to wrong binary operator access

2021-06-26 Thread vopl at bk dot ru via Gcc-bugs
Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vopl at bk dot ru Target Milestone: --- cat main.cpp && echo EOFF template struct Trap {}; struct Some { template)

[Bug c++/100825] function signature constraints are not a part of mangled name

2021-06-01 Thread vopl at bk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100825 --- Comment #6 from vopl at bk dot ru --- (In reply to Jonathan Wakely from comment #5) > Yes, I realise that, but I think that is the same rule that means you can't > change the result of overload resolution for a given call, B

[Bug c++/100825] function signature constraints are not a part of mangled name

2021-06-01 Thread vopl at bk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100825 --- Comment #4 from vopl at bk dot ru --- (In reply to Jonathan Wakely from comment #3) > Clang and EDG agree with GCC here. > > I think your code is ill-formed due to [temp.constr.atomic] p3: > > "If, at different points

[Bug c++/100825] function signature constraints are not a part of mangled name

2021-05-31 Thread vopl at bk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100825 --- Comment #2 from vopl at bk dot ru --- https://bugs.llvm.org/show_bug.cgi?id=50540

[Bug c++/100825] function signature constraints are not a part of mangled name

2021-05-29 Thread vopl at bk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100825 --- Comment #1 from vopl at bk dot ru --- a little more minimized: template void foo() {} //1 void useFirst() { foo();// call 1 - instantiate "void foo()" } template void foo() requires true {} //2 void useSecond() { foo()

[Bug c++/100825] New: function signature constraints are not a part of mangled name

2021-05-29 Thread vopl at bk dot ru via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vopl at bk dot ru Target Milestone: --- $ cat b.cpp && echo EOFF template void foo() // 1 {} template void foo() requires (sizeof(char) == sizeof(T)) // 2 { foo();/

[Bug c++/100516] Unexpected -Wstringop-overread in deque initialization from empty initializer_list

2021-05-11 Thread vopl at bk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100516 --- Comment #2 from vopl at bk dot ru --- minimal reproduce code I have: using size_t = decltype(sizeof(char)); class initializer { const char* _array; size_t _len; public: constexpr initializer() : _array{}, _len

[Bug c++/100516] Unexpected -Wstringop-overread in deque initialization from empty initializer_list

2021-05-11 Thread vopl at bk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100516 --- Comment #1 from vopl at bk dot ru --- Please look at the following code, it throws an unexpected warning [-Wstringop-overread]. $ cat b11.cpp && echo EOF #include void f() { std::initializer_list il{}; std::

[Bug c++/100516] New: Unexpected -Wstringop-overread in deque initialization from empty initializer_list

2021-05-11 Thread vopl at bk dot ru via Gcc-bugs
Keywords: diagnostic Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vopl at bk dot ru CC: msebor at gcc dot gnu.org Target Milestone: ---

[Bug c++/93320] internal compiler error: in is_base_type, at dwarf2out.c:12987

2021-05-07 Thread vopl at bk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93320 vopl at bk dot ru changed: What|Removed |Added CC||vopl at bk dot ru --- Comment #7

[Bug c++/100396] [11.1 regression] The template function overload is not selected correctly

2021-05-04 Thread vopl at bk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100396 --- Comment #4 from vopl at bk dot ru --- I understand what you're saying. But, apparently, there is still corruption in the calculus of the substituted Args, please look at this code (thanks to johny5): /0/1/

[Bug c++/100396] [11.1 regression] The template function overload is not selected correctly

2021-05-03 Thread vopl at bk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100396 --- Comment #2 from vopl at bk dot ru --- Please, try this, also failed /0/1/2/3/4/5/6/7 template struct Checker { using Some = decltype(F{}(Args{}...)); }; template concept

[Bug c++/100396] New: [11.1 regression] The template function overload is not selected correctly

2021-05-03 Thread vopl at bk dot ru via Gcc-bugs
: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vopl at bk dot ru Target Milestone: --- Regression in 11.1.0 $ cat src.cpp && echo EOFFF /0/1/2//

[Bug c++/99119] New: Class Types in Non-Type Template Parameters - ICE with templates nested

2021-02-16 Thread vopl at bk dot ru via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vopl at bk dot ru Target Milestone: --- g++ 9, 10 $ cat test.cpp && echo EOFFF //Class Types in Non-Type Template Parameters - ICE with templates nested templat

[Bug c++/86883] Unexpected error: expansion pattern '' contains no argument packs

2020-09-25 Thread vopl at bk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86883 --- Comment #4 from vopl at bk dot ru --- One more: template struct Outer { template struct Inner; template Inner method();//error: expansion pattern 'V0' contains no parameter packs };

[Bug c++/86883] Unexpected error: expansion pattern '' contains no argument packs

2020-09-24 Thread vopl at bk dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86883 vopl at bk dot ru changed: What|Removed |Added CC||vopl at bk dot ru --- Comment #3

[Bug c++/78715] [concepts] Access specifiers ignored after concept declaration

2018-04-10 Thread vopl at bk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78715 --- Comment #3 from vopl at bk dot ru --- probably the same https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67225 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78955 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80962

[Bug c++/78715] [concepts] Access specifiers ignored after concept declaration

2018-04-10 Thread vopl at bk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78715 vopl at bk dot ru changed: What|Removed |Added CC||vopl at bk dot ru --- Comment #2