This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36707] New: ICE in build_modify_expr on rvalue reference function template
- From: "sebor at roguewave dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jul 2008 23:50:41 -0000
- Subject: [Bug c++/36707] New: ICE in build_modify_expr on rvalue reference function template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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