[Bug c++/80908] New: [c++1z] ICE on instantiating a template deducing the noexcept-ness of a function pointer

2017-05-28 Thread hafnermorris at gmail dot com
Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hafnermorris at gmail dot com Target Milestone: --- Created attachment 41433 --> https://gcc.gnu.org/bugzi

[Bug c++/80873] ICE in tsubst_copy when trying to use an overloaded function without a definition in a lambda

2017-05-24 Thread hafnermorris at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80873 --- Comment #2 from Morris Hafner --- Created attachment 41413 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41413&action=edit Minimal example code (valid)

[Bug c++/80873] ICE in tsubst_copy when trying to use an overloaded function without a definition in a lambda

2017-05-24 Thread hafnermorris at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80873 --- Comment #1 from Morris Hafner --- I managed to create an example that is a valid program: struct Buffer {}; auto parse(Buffer b); template void parse(T target); template auto field(T target) { return [&] { parse(t

[Bug c++/80873] New: ICE in tsubst_copy when trying to use an overloaded function without a definition in a lambda

2017-05-24 Thread hafnermorris at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hafnermorris at gmail dot com Target Milestone: --- Created attachment 41411 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41411&action=edit

[Bug c++/79461] [5/6/7 Regression] [C++1z] ICE when capturing a variable in a lambda in a constexpr constructor

2017-02-13 Thread hafnermorris at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79461 --- Comment #2 from Morris Hafner --- I can see that the ice-on-invalid-code tag was set. This is only true in C++14 mode, because constexpr lambdas are part of the current C++17 draft (see Bug 70979). The code is also accepted by the current cla

[Bug c++/79461] New: [C++1z] ICE when capturing a variable in a lambda in a constexpr constructor

2017-02-10 Thread hafnermorris at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hafnermorris at gmail dot com Target Milestone: --- Created attachment 40717 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40717&action=edit Minimal example co