[Bug c++/96097] ICE in dependent_type_p, at cp/pt.c:26326

2020-07-07 Thread bruck.michael at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96097 --- Comment #1 from Michael Bruck --- trunk: internal compiler error: in dependent_type_p, at cp/pt.c:26326 10.1: internal compiler error: in dependent_type_p, at cp/pt.c:26343

[Bug c++/96097] New: ICE in dependent_type_p, at cp/pt.c:26326

2020-07-07 Thread bruck.michael at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at gmail dot com Target Milestone: --- https://gcc.godbolt.org/z/WVUAy5 Same error location as PR95931, but very different test case with valid code (probably). : In function 'void test()': :17:22: internal

[Bug c++/90782] internal compiler error: in dependent_type_p, at cp/pt.c:25409

2020-07-08 Thread bruck.michael at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90782 --- Comment #5 from Michael Bruck --- (In reply to Michael Bruck from comment #4) ugh that was for PR96097

[Bug c++/96097] ICE in dependent_type_p, at cp/pt.c:26326

2020-07-08 Thread bruck.michael at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96097 --- Comment #5 from Michael Bruck --- Further simplified code template typename> void func() {} template struct Y {}; void test() { func(); }

[Bug c++/90782] internal compiler error: in dependent_type_p, at cp/pt.c:25409

2020-07-08 Thread bruck.michael at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90782 Michael Bruck changed: What|Removed |Added CC||bruck.michael at gmail dot com

[Bug c++/95519] [coroutines] non-functions for promise_type::return_void not supported

2020-06-26 Thread bruck.michael at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95519 --- Comment #3 from Michael Bruck --- Some of the abort messages in main were not updated after copy/paste "Failed to call one of the ... cases"

[Bug c++/95505] [coroutines] ICE assert with get_return_object_on_allocation_failure

2020-06-27 Thread bruck.michael at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95505 --- Comment #6 from Michael Bruck --- Is it possible to point the user to include here like other parts of gcc do for standard library functions? i.e. name-lookup.c missing_std_header

[Bug c++/95540] [coroutine] coroutine_traits<> lookup for lambdas

2020-06-04 Thread bruck.michael at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95540 --- Comment #1 from Michael Bruck --- "impossible" is too strong here, you can add another overload: template struct std::coroutine_traits { using promise_type = pt; };

[Bug c++/95540] [coroutine] coroutine_traits<> lookup for lambdas

2020-06-05 Thread bruck.michael at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95540 --- Comment #5 from Michael Bruck --- > Since the coroutine traits are global, and the closure type is unique, > that provides a way to disambiguate instantiations of the traits for > lambdas with otherwise identical signatures. But the closure

[Bug c++/95557] New: __STDCPP_DEFAULT_NEW_ALIGNMENT__ is int instead of size_t

2020-06-05 Thread bruck.michael at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at gmail dot com Target Milestone: --- [cpp.predefined] __STDCPP_DEFAULT_NEW_ALIGNMENT__ "An integer literal of type std::size_t whose value is the..." It curre

[Bug c++/95510] New: [coroutines] ICE with consteval operator co_await

2020-06-03 Thread bruck.michael at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at gmail dot com Target Milestone: --- https://gcc.godbolt.org/z/JAaXAA #include struct dummy { struct promise_type { std::suspend_always initial_suspend() const noexcept { return

[Bug c++/95505] New: [coroutines] ICE assert with get_return_object_on_allocation_failure

2020-06-03 Thread bruck.michael at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at gmail dot com Target Milestone: --- https://gcc.godbolt.org/z/2LXQ2c #include struct dummy { struct promise_type { dummy get_return_object

[Bug c++/95516] [coroutines] incorrect warning "'coro.gro' is used uninitialized"

2020-06-04 Thread bruck.michael at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95516 --- Comment #2 from Michael Bruck --- I was using -Ofast -Wall: https://gcc.godbolt.org/z/pAkVS8

[Bug c++/95516] New: [coroutines] incorrect warning "'coro.gro' is used uninitialized"

2020-06-03 Thread bruck.michael at gmail dot com
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at gmail dot com Target Milestone: --- #include struct dummy { struct promise_type { dummy get_return_object() const noexcept { return {}; }

[Bug c++/95518] [coroutines] [[maybe_unused]] does not propagate to actor() and destroy()

2020-06-03 Thread bruck.michael at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95518 --- Comment #1 from Michael Bruck --- This bug probably applies to all attributes. Of the more plausible ones I tested [[gnu::section("")]] which also fails to propagate.

[Bug c++/95518] New: [coroutines] [[maybe_unused]] does not propagate to actor() and destroy()

2020-06-03 Thread bruck.michael at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at gmail dot com Target Milestone: --- Example with -Wall -Ofast: --- #include struct dummy { struct promise_type { dummy get_return_object

[Bug c++/95517] New: [coroutines] suggested warning when co_return and return_void() are missing

2020-06-03 Thread bruck.michael at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at gmail dot com Target Milestone: --- [stmt.return.coroutine] "3 If p.return_void() is a valid expression, flowing off the end of a coroutine is equiv

[Bug c++/95519] New: [coroutines] non-functions for promise_type::return_void not supported

2020-06-03 Thread bruck.michael at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at gmail dot com Target Milestone: --- The standard only requires certain expressions e.g. "p.return_void()", not specifically functions. return_void is th

[Bug c++/95540] New: [coroutine] coroutine_traits<> lookup for lambdas

2020-06-04 Thread bruck.michael at gmail dot com
ty: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at gmail dot com Target Milestone: --- This fails on gcc and clang gcc: unable to find the promise type for this coroutine clang: ...coroutine_traits<.., const (lambda at :30:12) &>' has

[Bug c++/95540] [coroutine] coroutine_traits<> lookup for lambdas

2020-06-11 Thread bruck.michael at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95540 Michael Bruck changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/95520] New: [coroutines] __builtin_FUNCTION() returns mangled .actor instead of original function name

2020-06-03 Thread bruck.michael at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at gmail dot com Target Milestone: --- #include #include struct pt { using handle_t = std::coroutine_handle; auto get_return_object

[Bug c++/95593] New: [c++20] decltype() on consteval compiles invalid code

2020-06-08 Thread bruck.michael at gmail dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at gmail dot com Target Milestone: --- https://gcc.godbolt.org/z/24novC This is from N4835 ([expr.const] after 14.7) and does not fail as required: struct N { constexpr N() {} N(N const&) = de

[Bug c++/95540] [coroutine] coroutine_traits<> lookup for lambdas

2020-06-05 Thread bruck.michael at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95540 --- Comment #3 from Michael Bruck --- I think you misread, I was complaining about it passing the closure to the traits/constructor/allocator. But if that is what was agreed upon... Can the closure object that is being passed to the constructor

[Bug c++/114632] New: ICE with explicit this in lambda

2024-04-07 Thread bruck.michael at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at gmail dot com Target Milestone: --- struct S {}; auto lambda = [](this auto& self, const int x) {}; int main() { void (*func)(S&, int) = lambda; return 0; } https://gcc.godbolt.org/z/3