Bug 52613 - [C++11] ICE with noexcept in lambda expression in member function of class template
Summary: [C++11] ICE with noexcept in lambda expression in member function of class te...
Status: RESOLVED DUPLICATE of bug 54122
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: c++-lambda, ice-on-valid-code
Depends on:
Blocks: lambdas
  Show dependency treegraph
 
Reported: 2012-03-19 09:57 UTC by Ai Azuma
Modified: 2022-03-11 00:32 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2012-03-20 00:00:00


Attachments
Output of -v option and preprocessed file (1.16 KB, text/plain)
2012-03-19 09:57 UTC, Ai Azuma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ai Azuma 2012-03-19 09:57:32 UTC
Created attachment 26914 [details]
Output of -v option and preprocessed file

The following valid code causes an ICE.

///////////////////////////
template<typename>
struct S
{
  void f()
  {
    [&] { noexcept(!b_); };
  }
  bool b_;
};
///////////////////////////

main.cpp: In lambda function:
main.cpp:6:21: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 Paolo Carlini 2012-03-20 11:13:31 UTC
Confirmed. Here too, like in PR52619, the crash happens in lvalue_kind when an INDIRECT_REF has no TREE_TYPE. And a lambda is also involved.

Jason, are we dealing with the same issue?
Comment 2 Paolo Carlini 2012-10-04 01:32:27 UTC
Again probably Dup of PR54403.
Comment 3 Paolo Carlini 2013-02-06 10:10:43 UTC
Fixed by the patch which fixed PR54122.

*** This bug has been marked as a duplicate of bug 54122 ***