re PR regression/53953 (g++.dg/cpp0x/lambda/lambda-ice2.C (warnings and errors not matching))
PR c++/53953 * method.c (synthesized_method_walk): Initialize no_implicit_p sooner. From-SVN: r189466
This commit is contained in:
parent
2ea4713db5
commit
c4180e5f31
|
@ -1,3 +1,8 @@
|
|||
2012-07-13 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/53953
|
||||
* method.c (synthesized_method_walk): Initialize no_implicit_p sooner.
|
||||
|
||||
2012-07-10 Jason Merrill <jason@redhat.com>
|
||||
|
||||
DR 1402
|
||||
|
|
|
@ -1123,6 +1123,9 @@ synthesized_method_walk (tree ctype, special_function_kind sfk, bool const_p,
|
|||
if (spec_p)
|
||||
*spec_p = (cxx_dialect >= cxx0x ? noexcept_true_spec : empty_except_spec);
|
||||
|
||||
if (no_implicit_p)
|
||||
*no_implicit_p = false;
|
||||
|
||||
if (deleted_p)
|
||||
{
|
||||
/* "The closure type associated with a lambda-expression has a deleted
|
||||
|
@ -1198,9 +1201,6 @@ synthesized_method_walk (tree ctype, special_function_kind sfk, bool const_p,
|
|||
if (trivial_p)
|
||||
*trivial_p = expected_trivial;
|
||||
|
||||
if (no_implicit_p)
|
||||
*no_implicit_p = false;
|
||||
|
||||
/* The TYPE_HAS_COMPLEX_* flags tell us about constraints from base
|
||||
class versions and other properties of the type. But a subobject
|
||||
class can be trivially copyable and yet have overload resolution
|
||||
|
|
Loading…
Reference in New Issue