[Bug c++/43641] [C++0x] internal compiler error: tree check: expected call_expr, have target_expr in maybe_add_lambda_conv_op

2010-04-16 Thread jason at gcc dot gnu dot org


--- Comment #10 from jason at gcc dot gnu dot org  2010-04-16 18:36 ---
Subject: Bug 43641

Author: jason
Date: Fri Apr 16 18:36:12 2010
New Revision: 158441

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158441
Log:
PR c++/43641
* semantics.c (maybe_add_lambda_conv_op): Use build_call_a and tweak
return value directly.

Added:
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv4.C
Modified:
branches/gcc-4_5-branch/gcc/cp/ChangeLog
branches/gcc-4_5-branch/gcc/cp/semantics.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/43641] [C++0x] internal compiler error: tree check: expected call_expr, have target_expr in maybe_add_lambda_conv_op

2010-04-16 Thread jason at gcc dot gnu dot org


--- Comment #11 from jason at gcc dot gnu dot org  2010-04-16 21:36 ---
Fixed for 4.5.1.


-- 

jason at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.5.1


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



[Bug c++/43641] [C++0x] internal compiler error: tree check: expected call_expr, have target_expr in maybe_add_lambda_conv_op

2010-04-12 Thread jason at gcc dot gnu dot org


-- 

jason at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2010-04-04 17:44:54 |2010-04-12 15:35:42
   date||


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



[Bug c++/43641] [C++0x] internal compiler error: tree check: expected call_expr, have target_expr in maybe_add_lambda_conv_op

2010-04-12 Thread jason at gcc dot gnu dot org


--- Comment #9 from jason at gcc dot gnu dot org  2010-04-12 19:59 ---
Subject: Bug 43641

Author: jason
Date: Mon Apr 12 19:58:49 2010
New Revision: 158241

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=158241
Log:
PR c++/43641
* semantics.c (maybe_add_lambda_conv_op): Use build_call_a and tweak
return value directly.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-conv4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/43641] [C++0x] internal compiler error: tree check: expected call_expr, have target_expr in maybe_add_lambda_conv_op

2010-04-11 Thread indy2718 at gmail dot com


--- Comment #8 from indy2718 at gmail dot com  2010-04-11 17:31 ---
reduced the test.cpp case to:

struct B
{
public:
int _a;
};

void func()
{
[](const B  b) - const int  { return b._a; };
}


-- 


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



[Bug c++/43641] [C++0x] internal compiler error: tree check: expected call_expr, have target_expr in maybe_add_lambda_conv_op

2010-04-09 Thread indy2718 at gmail dot com


--- Comment #6 from indy2718 at gmail dot com  2010-04-09 21:48 ---
Created an attachment (id=20353)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20353action=view)
ICE on lambda

try to compile, ICE


-- 


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



[Bug c++/43641] [C++0x] internal compiler error: tree check: expected call_expr, have target_expr in maybe_add_lambda_conv_op

2010-04-09 Thread indy2718 at gmail dot com


--- Comment #7 from indy2718 at gmail dot com  2010-04-09 21:51 ---
Independently received the same ICE on AMD64, trunk revision 157958.  test.cpp
attached.


-- 

indy2718 at gmail dot com changed:

   What|Removed |Added

 CC||indy2718 at gmail dot com


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



[Bug c++/43641] [C++0x] internal compiler error: tree check: expected call_expr, have target_expr in maybe_add_lambda_conv_op

2010-04-07 Thread wilhelm at segatz dot org


--- Comment #5 from wilhelm at segatz dot org  2010-04-07 17:31 ---
sourced compiled with gcc version 4.5.0 20100311 (experimental) (GCC)


-- 


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



[Bug c++/43641] [C++0x] internal compiler error: tree check: expected call_expr, have target_expr in maybe_add_lambda_conv_op

2010-04-04 Thread redi at gcc dot gnu dot org


--- Comment #3 from redi at gcc dot gnu dot org  2010-04-04 17:22 ---
or even just

struct P {};
void drawInside( )
{
[ ] ( ) - P
{
 return P();
};
}


-- 


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



[Bug c++/43641] [C++0x] internal compiler error: tree check: expected call_expr, have target_expr in maybe_add_lambda_conv_op

2010-04-04 Thread paolo dot carlini at oracle dot com


--- Comment #4 from paolo dot carlini at oracle dot com  2010-04-04 17:44 
---
Excellent Jon.


-- 


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



[Bug c++/43641] [C++0x] internal compiler error: tree check: expected call_expr, have target_expr in maybe_add_lambda_conv_op

2010-04-04 Thread paolo dot carlini at oracle dot com


-- 

paolo dot carlini at oracle dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2010-04-04 17:44:54
   date||


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