]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/57526 (use of X before deduction of auto error for seemingly good code)
authorJason Merrill <jason@redhat.com>
Tue, 9 Jul 2013 17:56:43 +0000 (13:56 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 9 Jul 2013 17:56:43 +0000 (13:56 -0400)
commitd9fac9dd59fa8f8d646c98d21f6c874f11e608b5
tree1550a242e2ba58b3499836790955b38bc436b060
parentf9f91ddcf76a01b80f8b194f7402aedc40e8af79
re PR c++/57526 (use of X before deduction of auto error for seemingly good code)

PR c++/57526
* semantics.c (lambda_capture_field_type): Build a DECLTYPE_TYPE
if the variable type uses 'auto'.

From-SVN: r200844
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-auto3.C [new file with mode: 0644]