The compiler says: internal compiler error: Segmentation fault
The map must be a class member to reproduce the bug. 
If the decltype is not in a lambda, but a method argument, a different message
appears: internal compiler error: in tree_low_cst, at tree.c:6328
This code compiled correctly with g++ 4.5.0.

File content:
#include <map>

struct S {
    std::map < void*, int> Map;

    void f() {
        auto lambda=[&](decltype(*Map.begin()) & i) { };


           Summary: Regression: compiler segmentation fault on decltype from
                    a dereferenced map iterator
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: qduaty at gmail dot com
  GCC host triplet: i686-pc-linux-gnu

Reply via email to