re PR c++/18464 (error message about "non-lvalue in unary '&'" when using ?: operator)
authorMark Mitchell <mark@codesourcery.com>
Wed, 22 Dec 2004 18:00:39 +0000 (18:00 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 22 Dec 2004 18:00:39 +0000 (18:00 +0000)
commitdfb5c52315ecc5b6ebabf2d7cb3d3d69f35a378b
tree92d85ea737af3ab701ec3aa12c9d0ae5763ee5c1
parent606145e4e0e54d412059033a6261c53bf11d7b6d
re PR c++/18464 (error message about "non-lvalue in unary '&'" when using ?: operator)

PR c++/18464
* call.c (build_this): In templates, do not bother with
build_unary_op.
* typeck.c (unary_complex_lvalue): In a template, always refuse
simplifications.

PR c++/18492
* cp-gimplify.c (cp_genericize): Relax assertion.

PR c++/11224
* cvt.c (convert_to_void): Warn about unused values.

PR c++/18257
* rtti.c (emit_support_tinfos): On systems without weak symbols,
emit the runtime library type-info objects as non-COMDAT.

PR c++/18464
* g++.dg/template/cond5.C: New test.

PR c++/18492
* g++.dg/inherit/thunk3.C: New test.

PR c++/11224
* g++.dg/warn/Wunused-9.C: New test.

From-SVN: r92491
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-gimplify.c
gcc/cp/cvt.c
gcc/cp/rtti.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/thunk3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/cond5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wunused-9.C [new file with mode: 0644]