re PR c++/23840 (Bogus "invalid lvalue in unary '&'" diagnostic and ICE with va_arg)
authorMark Mitchell <mark@codesourcery.com>
Sun, 2 Oct 2005 21:28:50 +0000 (21:28 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 2 Oct 2005 21:28:50 +0000 (21:28 +0000)
commitc0ad5a317379afbc3dfb0fb1fd4e6fdb98aab8e2
tree10dca596efc248e2d42da67bbf26853432593ca3
parentb19bb8b0445fca3bef3d30d244395c2319c1bf9c
re PR c++/23840 (Bogus "invalid lvalue in unary '&'" diagnostic and ICE with va_arg)

PR c++/23840
* tree.c (lvalue_p1): A VA_ARG_EXPR with class type is an lvalue,
when class rvalues are lvalues.

PR c++/23840
* g++.dg/expr/stdarg1.C: New test.

From-SVN: r104877
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/stdarg1.C [new file with mode: 0644]