diff options
| author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-10-06 22:14:01 +0000 |
|---|---|---|
| committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-10-06 22:14:01 +0000 |
| commit | 7da3c25a95641edd488f078f418e1aa664432f87 (patch) | |
| tree | 91a2cc25814e680725f6c140def08bac99194893 /libjava/classpath/java/security/AlgorithmParameterGenerator.java | |
| parent | 80c8ed0239da3e68de63741501fa15f0419c4cd4 (diff) | |
| download | ppe42-gcc-7da3c25a95641edd488f078f418e1aa664432f87.tar.gz ppe42-gcc-7da3c25a95641edd488f078f418e1aa664432f87.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152500 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/java/security/AlgorithmParameterGenerator.java')
0 files changed, 0 insertions, 0 deletions

