aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-eh.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2014-04-29 14:04:50 -0400
committerJason Merrill <jason@gcc.gnu.org>2014-04-29 14:04:50 -0400
commitb15ea3099ae6e566f715aeafb32efbd1782614b4 (patch)
tree2f6939ee0e72751f47ab06c75051dd73d1f3d903 /gcc/tree-eh.c
parent7cb0403f41978641d6e0954761fa0600bc2ad10c (diff)
downloadgcc-b15ea3099ae6e566f715aeafb32efbd1782614b4.zip
gcc-b15ea3099ae6e566f715aeafb32efbd1782614b4.tar.gz
gcc-b15ea3099ae6e566f715aeafb32efbd1782614b4.tar.bz2
DR 1351 Represent the unevaluated exception specification of an implicitly declared or deleted function with a simple placeholder...
DR 1351 Represent the unevaluated exception specification of an implicitly declared or deleted function with a simple placeholder, not a list of functions. * cp-tree.h (UNEVALUATED_NOEXCEPT_SPEC_P): New. * except.c (unevaluated_noexcept_spec): New. * class.c (deduce_noexcept_on_destructor): Use it. * decl.c (check_redeclaration_exception_specification): Call maybe_instantiate_noexcept. (duplicate_decls): Call it before merge_types. (start_preparsed_function): Call maybe_instantiate_noexcept. * decl2.c (mark_used): Call maybe_instantiate_noexcept earlier. * init.c (get_nsdmi): Factor out of perform_member_init. * method.c (process_subob_fn): Call maybe_instantiate_noexcept. (walk_field_subobs): Consider NSDMI for EH spec. (get_defaulted_eh_spec): New. (implicitly_declare_fn): Use unevaluated_noexcept_spec. (defaulted_late_check): Defer EH checking in non-template classes. (after_nsdmi_defaulted_late_checks): New. * parser.c (cp_parser_class_specifier_1): Use it. (unparsed_classes): New macro. * parser.h (cp_unparsed_functions_entry_d): Add classes field. * pt.c (maybe_instantiate_noexcept): Use get_defaulted_eh_spec. Remove list-of-functions handling. * typeck2.c (merge_exception_specifiers): Remove list-of-functions handling and FN parameter. * typeck.c (merge_types): Adjust. From-SVN: r209907
Diffstat (limited to 'gcc/tree-eh.c')
0 files changed, 0 insertions, 0 deletions