-
- Downloads
re PR c++/30759 (initializer-list accepted for object of non-POD type)
gcc/ 2007-06-07 Simon Martin <simartin@users.sourceforge.net> PR c++/30759 * c-common.h (flag_cpp0x): Replaced by... (cxx_dialect): ... this new variable specifying the C++ dialect that is used. * c-common.c (flag_cpp0x): Removed. (cxx_dialect): Defined. * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of cxx_dialect. * c-opts.c (c_common_post_options): Likewise. (set_std_cxx98): Set cxx_dialect to cxx98. (set_std_cxx0x): Set cxx_dialect to cxx0x. gcc/cp/ 2007-06-07 Simon Martin <simartin@users.sourceforge.net> PR c++/30759 * decl.c (check_initializer): Report an error when a brace enclosed initializer is used for a non-aggregate type in C++98. (redeclaration_error_message): Rewrote flag_cpp0x in terms of cxx_dialect. (grokdeclarator): Likewise. (move_fn_p): Likewise. * typeck.c (check_return_expr): Likewise. * call.c (reference_binding): Likewise. * error.c (cp_cpp_error): Likewise. * pt.c (check_default_tmpl_args): Likewise. (tsubst): Likewise. * lex.c (init_reswords): Likewise. * parser.c (p_parser_primary_expression): Likewise. (TOKEN_PRECEDENCE): Likewise. (cp_parser_init_declarator): Likewise. (cp_parser_ptr_operator): Likewise. (cp_parser_parameter_declaration): Likewise. (cp_parser_enclosed_template_argument_list): Likewise. (cp_parser_skip_to_end_of_template_parameter_list): Likewise. (cp_parser_next_token_ends_template_argument_p): Likewise. gcc/testsuite/ 2007-06-07 Simon Martin <simartin@users.sourceforge.net> PR c++/30759 * g++.dg/init/brace6.C: New test. From-SVN: r125539
Showing
- gcc/ChangeLog 14 additions, 0 deletionsgcc/ChangeLog
- gcc/c-common.c 2 additions, 3 deletionsgcc/c-common.c
- gcc/c-common.h 11 additions, 3 deletionsgcc/c-common.h
- gcc/c-cppbuiltin.c 1 addition, 1 deletiongcc/c-cppbuiltin.c
- gcc/c-opts.c 3 additions, 2 deletionsgcc/c-opts.c
- gcc/cp/ChangeLog 24 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/call.c 1 addition, 1 deletiongcc/cp/call.c
- gcc/cp/decl.c 26 additions, 11 deletionsgcc/cp/decl.c
- gcc/cp/error.c 1 addition, 1 deletiongcc/cp/error.c
- gcc/cp/lex.c 1 addition, 1 deletiongcc/cp/lex.c
- gcc/cp/parser.c 14 additions, 12 deletionsgcc/cp/parser.c
- gcc/cp/pt.c 7 additions, 7 deletionsgcc/cp/pt.c
- gcc/cp/typeck.c 1 addition, 1 deletiongcc/cp/typeck.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/init/brace6.C 25 additions, 0 deletionsgcc/testsuite/g++.dg/init/brace6.C
Loading
Please register or sign in to comment