gcc/gcc/cp
Jakub Jelinek 4b8c1a924a re PR c++/41131 (non-lvalue in unary `&' wrongly accepted)
PR c++/41131
	* tree.c (lvalue_p_1) <case CONST_DECL>: Return clk_none if
	not TREE_STATIC.

	* g++.dg/expr/unary3.C: New test.

From-SVN: r150985
2009-08-21 09:08:15 +02:00
..
ChangeLog re PR c++/41131 (non-lvalue in unary `&' wrongly accepted) 2009-08-21 09:08:15 +02:00
ChangeLog-1993 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1994 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1995 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1996 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1997 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1998 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1999 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2000 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2001 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2002 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2003 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2004 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2005 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2006 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2007 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2008 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog.ptr ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog.tree-ssa ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
Make-lang.in re PR c/40401 (ICE: verify_gimple failed) 2009-07-17 15:49:34 +00:00
NEWS ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
call.c Make TREE_USED match the [basic.def.odr] concept for FUNCTION_DECL and VAR_DECL... 2009-08-16 13:42:56 -04:00
cfns.gperf ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
cfns.h ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
class.c re PR c/40435 (Revision 148442 caused many regressions on trunk) 2009-07-16 22:29:52 +00:00
config-lang.in
cp-gimplify.c re PR c++/40834 (Revision 149750 failed 483.xalancbmk in SPEC CPU 2006) 2009-07-29 20:16:32 +00:00
cp-lang.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
cp-objcp-common.c c-common.c (c_expand_expr, c_staticp): Remove. 2009-03-29 18:26:43 +00:00
cp-objcp-common.h cgraphunit.c (cgraph_function_versioning,save_inline_function_body): Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY. 2009-06-15 14:25:50 +00:00
cp-tree.def
cp-tree.h Make TREE_USED match the [basic.def.odr] concept for FUNCTION_DECL and VAR_DECL... 2009-08-16 13:42:56 -04:00
cvt.c call.c (reference_binding): Rename lvalue_p to is_lvalue. 2009-07-31 22:26:21 -04:00
cxx-pretty-print.c re PR c/40435 (Revision 148442 caused many regressions on trunk) 2009-07-16 22:29:52 +00:00
cxx-pretty-print.h c-objc-common.c (c_tree_printer): Print identifiers with pp_identifier, not pp_string. 2009-05-01 15:09:20 +01:00
decl.c decl.c (build_ptrmemfunc_type): Keep variant chain intact. 2009-08-17 11:03:59 +00:00
decl.h re PR c++/37806 (CV-qualifiers on function typedef's are inconsistently accepted depending on typedef scope) 2009-03-31 14:31:17 -04:00
decl2.c tweak comment 2009-08-19 14:24:13 -04:00
dump.c
error.c re PR debug/39706 (namespaces represented incorrectly in debug_pubnames) 2009-08-04 14:26:01 +02:00
except.c re PR c/40435 (Revision 148442 caused many regressions on trunk) 2009-07-16 22:29:52 +00:00
expr.c
friend.c diagnostic.c (inform): Add an explicit location_t parameter. 2008-08-20 13:35:00 +00:00
g++spec.c * g++spec.c (lang_specific_driver): Bump num_args by 1. 2009-07-01 18:46:09 +00:00
init.c Make TREE_USED match the [basic.def.odr] concept for FUNCTION_DECL and VAR_DECL... 2009-08-16 13:42:56 -04:00
lang-specs.h
lex.c re PR c++/40619 ([c++0x] ICE on repeated decltype expression in auto functions) 2009-07-04 00:34:03 -04:00
mangle.c mangle.c (mangle_type_string_for_rtti): Rename to be clearer. 2009-07-22 19:03:22 -04:00
method.c method.c (use_thunk): Call free_after_compilation after assemble_end_function. 2009-08-19 17:27:48 +02:00
name-lookup.c Implement DR 757... 2009-08-10 16:47:55 -04:00
name-lookup.h Implement DR 757... 2009-08-10 16:47:55 -04:00
operators.def decl.c (grokfndecl): Set DECL_CONTEXT on parms. 2009-03-17 19:31:18 -04:00
optimize.c re PR c/40401 (ICE: verify_gimple failed) 2009-07-17 15:49:34 +00:00
parser.c re PR c++/41119 (Revision 150805 failed 447.dealII in SPEC CPU 2006) 2009-08-19 13:14:33 -04:00
pt.c Make TREE_USED match the [basic.def.odr] concept for FUNCTION_DECL and VAR_DECL... 2009-08-16 13:42:56 -04:00
ptree.c pt.c (retrieve_specialization): Don't get confused by a using-declaration that brings in another instance of... 2009-07-04 22:09:15 -04:00
repo.c common.opt (fcompare-debug=, [...]): New. 2009-06-08 07:46:02 +00:00
rtti.c mangle.c (mangle_type_string_for_rtti): Rename to be clearer. 2009-07-22 19:03:22 -04:00
search.c cp-tree.h (struct lang_decl): Overhaul. 2009-07-03 20:43:26 -04:00
semantics.c re PR c/40401 (ICE: verify_gimple failed) 2009-07-17 15:49:34 +00:00
tree.c re PR c++/41131 (non-lvalue in unary `&' wrongly accepted) 2009-08-21 09:08:15 +02:00
typeck.c re PR c++/36069 (Strange "warning: suggest parentheses around assignment used as truth value" with volatile/non volatile bools) 2009-08-04 23:51:07 +00:00
typeck2.c re PR c++/40689 ([C++0x]: error with initializer list in N2672) 2009-07-12 15:19:03 -04:00