[Bug c++/95455] ICE in capture with initializer in requires block

2024-04-14 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95455 Egor Pugin changed: What|Removed |Added CC||egor.pugin at gmail dot com --- Comment #6

[Bug c++/114392] New: Address of overloaded function with requires

2024-03-19 Thread egor.pugin at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- https://godbolt.org/z/jfs98fhKK clang, msvc seem to work. ``` template struct A { static void call() requires (N == 0) { } static void call(int x) requires (N

[Bug c++/114271] [ICE] on invalid

2024-03-07 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114271 --- Comment #1 from Egor Pugin --- echo "int f=[](class{" | g++ -x c++ -

[Bug c++/114271] New: [ICE] on invalid

2024-03-07 Thread egor.pugin at gmail dot com via Gcc-bugs
: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- int f=[](class{ :1:15: error: types may not be defined in parameter types 1 | int f=[](class{ | ^ :1:16: error: expected '}' at end of input 1 | int

[Bug c++/114106] New: Wrong result of decltype

2024-02-25 Thread egor.pugin at gmail dot com via Gcc-bugs
: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- https://godbolt.org/z/ojbzGYqbW MSVC works. template struct Type {}; template struct ImplT : Ts... { using Ts::operator()...; }; template using ImplA = ImplT){})...>; template conste

[Bug pch/105858] MinGW-w64 64-bit build with --libstdcxx-pch: fatal error: cannot write PCH file: required memory segment unavailable

2022-12-23 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105858 --- Comment #6 from Egor Pugin --- Same issue.

[Bug c++/107981] 'operator auto' has not been declared in base

2022-12-05 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107981 --- Comment #2 from Egor Pugin --- Ignore previous comment.

[Bug c++/107981] 'operator auto' has not been declared in base

2022-12-05 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107981 --- Comment #1 from Egor Pugin --- Also see following test cases. === ok for gcc struct a { operator auto(); }; struct b : a { using a::operator auto; }; === not ok for gcc&clang, ok for msvc struct a { operator auto(); }; stru

[Bug c++/107981] New: 'operator auto' has not been declared in base

2022-12-05 Thread egor.pugin at gmail dot com via Gcc-bugs
mponent: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- struct a { operator auto() { return 1; } }; struct b : a { using a::operator auto; }; gives :5:23: error: 'operator auto' has not been declared

[Bug c++/99243] [modules] ICE in set_filename, at cp/module.cc:19143

2022-09-16 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99243 --- Comment #5 from Egor Pugin --- Possible naive fix is to change in module.cc (void module_state::set_filename (const Cody::Packet &packet)): - error_at (loc, "unknown Compiled Module Interface: %s", packet.GetString ().c_

[Bug c++/106685] New: [12/13 Regerssion] ICE

2022-08-19 Thread egor.pugin at gmail dot com via Gcc-bugs
: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- https://godbolt.org/z/987rxevMh

[Bug libstdc++/106608] [12 Regression] std::optional requires unavailable dtor

2022-08-14 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106608 --- Comment #3 from Egor Pugin --- Small repro https://godbolt.org/z/WKc7arxMs Probably clang issue.

[Bug libstdc++/106608] [12 Regression] std::optional requires unavailable dtor

2022-08-13 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106608 Egor Pugin changed: What|Removed |Added CC||egor.pugin at gmail dot com --- Comment

[Bug libstdc++/106608] [12 Regression] std::optional requires unavailable dtor

2022-08-13 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106608 --- Comment #1 from Egor Pugin --- Update links. === We've tried to build Telegram Desktop with GCC 12 and got such error: http://paste.mva.name/co36VoGr.txt There is a struct A { vector b; }, where B is a declared, but not defined struct:

[Bug libstdc++/106608] New: [12 Regression] std::optional requires unavailable dtor

2022-08-13 Thread egor.pugin at gmail dot com via Gcc-bugs
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- by John Preston We've tried to build Telegram Desktop with GCC 12 and got such error: http://paste.mva.name/co36VoGr.txt There

[Bug c++/105999] Wrong requires result inside lambda in a class

2022-06-20 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105999 --- Comment #3 from Egor Pugin --- See ms response https://developercommunity.visualstudio.com/t/C-Wrong-requires-result-inside-lambd/10073268#T-N10075675

[Bug c++/105999] New: Wrong requires result inside lambda in a class

2022-06-16 Thread egor.pugin at gmail dot com via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- Gives x instead of y on any latest compiler. https://godbolt.org/z/6MrvMaPoK #include struct A { void g(){} void f() { []() { //if constexpr

[Bug c++/105655] New: [12/13 Regression] ICE on invalid deduction

2022-05-19 Thread egor.pugin at gmail dot com via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- Works on 11.3, does not work on 12 and trunk. https://godbolt.org/z/YrEbn3K6f template struct A { template struct B { B(const L & left, con

[Bug c/78352] GCC lacks support for the Apple "blocks" extension to the C family of languages

2022-05-13 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78352 --- Comment #17 from Egor Pugin --- Iain, any chance of publishing your blocks patches as is? Also what's the status of apple m1 support? As I understand homebrew's gcc uses your patches, but I met blocks errors when building cmake in file that

[Bug c++/105398] [11/12 Regression][ICE] enum in array in lambda

2022-04-26 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105398 --- Comment #1 from Egor Pugin --- auto f = [](auto &&m) { enum { _,e3,e2,e1,C4,C3,C2,C1 }; static constexpr int x_coeffs[3][4] = { {e1,C2,C3,C4}, {e2,C1,C3,C4}, {e3,C1,C2,C4}, }; }; int main() { f(0); }

[Bug c++/105398] New: [11/12 Regression][ICE] enum in array in lambda

2022-04-26 Thread egor.pugin at gmail dot com via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- Works in 10.3, broken in 11.1 till trunk. https://godbolt.org/z/x3z6WYroE

[Bug c++/104503] [12 regression][modules] bits/shared_ptr_base.h: error: must ‘#include ’ before using ‘typeid’

2022-04-06 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104503 --- Comment #3 from Egor Pugin --- But what is using in 2.cpp? Module m does not export anything.

[Bug c++/104503] New: [12 regression][modules] bits/shared_ptr_base.h: error: must ‘#include ’ before using ‘typeid’

2022-02-11 Thread egor.pugin at gmail dot com via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- 11.2.1 works fine. #include is present in include/c++/12.0.1/bits/shared_ptr_base.h

[Bug c++/99243] [modules] ICE in set_filename, at cp/module.cc:19143

2022-02-11 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99243 Egor Pugin changed: What|Removed |Added CC||egor.pugin at gmail dot com --- Comment #2

[Bug c++/103969] New: 'auto' parameter not permitted in this context

2022-01-10 Thread egor.pugin at gmail dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- template decltype(auto) { return v; }> struct s {}; gives Output of x86-64 gcc (trunk) (Compiler #2) :1:21: error: 'auto' parameter not permitte

[Bug c++/103871] [11/12 Regression] co_await causes build error

2021-12-31 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103871 --- Comment #2 from Egor Pugin --- Repro #include #include #include struct s { s(std::vector &&); }; struct async_task { struct promise_type { auto initial_suspend() const { return std::suspend_never{}; } auto final_

[Bug c++/103871] [11.2.1/12 Regression] co_await causes build error

2021-12-30 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103871 --- Comment #1 from Egor Pugin --- 11.2.1 fails g++ --version g++ (GCC) 11.2.1 20211203 (Red Hat 11.2.1-7)

[Bug c++/103871] New: [11.2.1/12 Regression] co_await causes build error

2021-12-30 Thread egor.pugin at gmail dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- See https://godbolt.org/z/8zTGKj8Ts gcc (trunk) fails. gcc 11.2.0 builds ok. error: : In function 'async_task f()': :28:1: error: array used as initial

[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2021-12-17 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754 --- Comment #5 from Egor Pugin --- (In reply to Andrew Pinski from comment #3) > Sadly it looks like modules are no where near prime time. Seems so. I set up my tooling and trying to play with them, but there are a lot of issues. Does someone

[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2021-12-16 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754 --- Comment #2 from Egor Pugin --- Created attachment 52020 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52020&action=edit more ice on g++-12 master Adding more ICE logs without filing new tickets in case if need to check more error pla

[Bug c++/103754] [11,12][ice][modules] import bits/stdc++.h and map

2021-12-16 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103754 Egor Pugin changed: What|Removed |Added Summary|[11][ice][modules] import |[11,12][ice][modules] |b

[Bug c++/103754] New: [11][ice][modules] import bits/stdc++.h and map

2021-12-16 Thread egor.pugin at gmail dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- Created attachment 52019 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52019&action=edit repro ./15899673681173752886.sh + rm -rf gcm.cache + g++ -st

[Bug c++/103752] New: [12 Regression][ICE][modules] with import

2021-12-16 Thread egor.pugin at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- Created attachment 52017 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52017&action=edit repro export module x; import ; std::pair environment; gcc11 works fi

[Bug c++/103518] g++ hangs on invalid code

2021-12-01 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103518 --- Comment #4 from Egor Pugin --- Created attachment 51916 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51916&action=edit preprocessed file

[Bug c++/103518] g++ hangs on invalid code

2021-12-01 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103518 --- Comment #2 from Egor Pugin --- Callgrind https://www.dropbox.com/s/3ro2ulrfp6jma8f/callgrind.out.39995?dl=1 Interestingly, clang++-13 hangs for 50 s. while gcc for 150 s. Probably, clang also does something wrong here.

[Bug c++/103518] g++ hangs on invalid code

2021-12-01 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103518 Egor Pugin changed: What|Removed |Added CC||egor.pugin at gmail dot com --- Comment

[Bug c++/103518] New: g++ hangs on invalid code

2021-12-01 Thread egor.pugin at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- Preprocessed file (315KB): https://www.dropbox.com/s/tey8z9mfi123uon/gcc_hang.tar.xz?dl=1 Command: g++ -std=c++2b -c 1.cpp Replace line 114821 from (invalid) title_link title_

[Bug c++/103212] requires expression with lambda fails

2021-11-12 Thread egor.pugin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103212 --- Comment #1 from Egor Pugin --- Original code was closer to something like this: --- #include constexpr bool test = requires { [](auto o) {}(std::unique_ptr{}); }; static_assert(test); ---

[Bug c++/103212] New: requires expression with lambda fails

2021-11-12 Thread egor.pugin at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- --- constexpr bool test = requires { [](auto o){}(0); }; static_assert(test); --- gives :1:37: error: expected primary-expression before 'auto' 1 | constexpr

[Bug c++/81164] New: [7/8 Regression] ICE in inherited_ctor_binfo_1 when using virtual inheritance

2017-06-21 Thread egor.pugin at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: egor.pugin at gmail dot com Target Milestone: --- struct A {}; struct B : virtual A {}; struct C : virtual A {}; struct D : B,C { using A::A; }; Code is not correct, but g