I haven't found anything about this in Bugzilla or tried 4.3.1:

$ cat t.cpp && g++ -std=gnu++0x t.cpp
template <class T> void foo (T&& x) { x = T (); }

int main () {
    int i;
    foo (i);
}
t.cpp: In function ‘void foo(T&&) [with T = int&]’:
t.cpp:5:   instantiated from here
t.cpp:1: internal compiler error: in build_modify_expr, at cp/typeck.c:5821
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE in build_modify_expr on rvalue reference function
                    template
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sebor at roguewave dot com


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

Reply via email to