In the minimal example (to be attached), g++ crashes with a "please submit bug
report" message.

The goal of the original code was to provide a generic multi-label connected
component algorithm. Therefore, I wished to output a label along with each
Component of the same type as the input data 2d array----decltype(data[0][0]).

However, when I added a lambda expression as part of operating on something
related to this type, g++ began crashing during compile.

I realize that in some cases decltype(data[0][0]) may have a reference type so
this code may be invalid; however, the compiler still should not crash, but
simply report an error.


-- 
           Summary: g++ crashes when declaring a lambda expression using a
                    typedef'd decltype.
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: LindleyF at gmail dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44366

Reply via email to