diff options
| author | Jason Merrill <jason@redhat.com> | 2009-10-06 18:14:01 -0400 |
|---|---|---|
| committer | Jason Merrill <jason@gcc.gnu.org> | 2009-10-06 18:14:01 -0400 |
| commit | 37a7519a24389c6e724566944b654e0ad3654a79 (patch) | |
| tree | 91a2cc25814e680725f6c140def08bac99194893 /libjava/java/util/TimerTask.h | |
| parent | ebde32fd2478df9909e07843451956ce89a02b46 (diff) | |
| download | gcc-37a7519a24389c6e724566944b654e0ad3654a79.zip gcc-37a7519a24389c6e724566944b654e0ad3654a79.tar.gz gcc-37a7519a24389c6e724566944b654e0ad3654a79.tar.bz2 | |
Fix lookup of initialized captures in unevaluated context.
* cp-tree.h (DECL_NORMAL_CAPTURE_P): New.
* name-lookup.c (qualify_lookup): Check it.
* parser.c (cp_parser_lambda_introducer): Pass explicit_init_p
to add_capture.
* semantics.c (add_capture): Set DECL_NORMAL_CAPTURE_P
on captures without explicit init.
(add_default_capture): Pass explicit_init_p.
Fix capture by copy of types with explicit copy constructor.
* cp-tree.h (TARGET_EXPR_DIRECT_INIT_P): New.
(DIRECT_INIT_EXPR_P): New.
* typeck.c (convert_for_initialization): Just return if
DIRECT_INIT_EXPR_P.
* parser.c (cp_parser_lambda_introducer): Use
TARGET_EXPR_DIRECT_INIT_P for normal captures.
From-SVN: r152500
Diffstat (limited to 'libjava/java/util/TimerTask.h')
0 files changed, 0 insertions, 0 deletions
