public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/30759] New: initializer-list accepted for object of non-POD type @ 2007-02-10 19:56 gdr at gcc dot gnu dot org 2007-02-10 21:08 ` [Bug c++/30759] [4.1/4.2/4.3 Regression] " pinskia at gcc dot gnu dot org ` (7 more replies) 0 siblings, 8 replies; 9+ messages in thread From: gdr at gcc dot gnu dot org @ 2007-02-10 19:56 UTC (permalink / raw) To: gcc-bugs Current GCC accepts the following struct A { A(int) { } }; int main() { A a = { 6 }; } which is invalid. This is a regression from GCC-3.3.x -- Summary: initializer-list accepted for object of non-POD type Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gdr at gcc dot gnu dot org GCC host triplet: platform independent http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30759 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/30759] [4.1/4.2/4.3 Regression] initializer-list accepted for object of non-POD type 2007-02-10 19:56 [Bug c++/30759] New: initializer-list accepted for object of non-POD type gdr at gcc dot gnu dot org @ 2007-02-10 21:08 ` pinskia at gcc dot gnu dot org 2007-02-14 9:22 ` mmitchel at gcc dot gnu dot org ` (6 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: pinskia at gcc dot gnu dot org @ 2007-02-10 21:08 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2007-02-10 21:08 ------- Confirmed. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |accepts-invalid Known to fail| |4.1.1 4.2.0 4.3.0 Known to work| |4.0.2 Last reconfirmed|0000-00-00 00:00:00 |2007-02-10 21:08:28 date| | Summary|initializer-list accepted |[4.1/4.2/4.3 Regression] |for object of non-POD type |initializer-list accepted | |for object of non-POD type Target Milestone|--- |4.1.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30759 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/30759] [4.1/4.2/4.3 Regression] initializer-list accepted for object of non-POD type 2007-02-10 19:56 [Bug c++/30759] New: initializer-list accepted for object of non-POD type gdr at gcc dot gnu dot org 2007-02-10 21:08 ` [Bug c++/30759] [4.1/4.2/4.3 Regression] " pinskia at gcc dot gnu dot org @ 2007-02-14 9:22 ` mmitchel at gcc dot gnu dot org 2007-02-19 21:07 ` mmitchel at gcc dot gnu dot org ` (5 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2007-02-14 9:22 UTC (permalink / raw) To: gcc-bugs -- mmitchel at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.1.2 |4.1.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30759 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/30759] [4.1/4.2/4.3 Regression] initializer-list accepted for object of non-POD type 2007-02-10 19:56 [Bug c++/30759] New: initializer-list accepted for object of non-POD type gdr at gcc dot gnu dot org 2007-02-10 21:08 ` [Bug c++/30759] [4.1/4.2/4.3 Regression] " pinskia at gcc dot gnu dot org 2007-02-14 9:22 ` mmitchel at gcc dot gnu dot org @ 2007-02-19 21:07 ` mmitchel at gcc dot gnu dot org 2007-05-26 18:50 ` patchapp at dberlin dot org ` (4 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2007-02-19 21:07 UTC (permalink / raw) To: gcc-bugs -- mmitchel at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30759 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/30759] [4.1/4.2/4.3 Regression] initializer-list accepted for object of non-POD type 2007-02-10 19:56 [Bug c++/30759] New: initializer-list accepted for object of non-POD type gdr at gcc dot gnu dot org ` (2 preceding siblings ...) 2007-02-19 21:07 ` mmitchel at gcc dot gnu dot org @ 2007-05-26 18:50 ` patchapp at dberlin dot org 2007-06-07 19:59 ` simartin at gcc dot gnu dot org ` (3 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: patchapp at dberlin dot org @ 2007-05-26 18:50 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from patchapp at dberlin dot org 2007-05-26 18:50 ------- Subject: Bug number PR c++/30759 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-05/msg01795.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30759 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/30759] [4.1/4.2/4.3 Regression] initializer-list accepted for object of non-POD type 2007-02-10 19:56 [Bug c++/30759] New: initializer-list accepted for object of non-POD type gdr at gcc dot gnu dot org ` (3 preceding siblings ...) 2007-05-26 18:50 ` patchapp at dberlin dot org @ 2007-06-07 19:59 ` simartin at gcc dot gnu dot org 2007-06-08 18:28 ` simartin at gcc dot gnu dot org ` (2 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: simartin at gcc dot gnu dot org @ 2007-06-07 19:59 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from simartin at gcc dot gnu dot org 2007-06-07 19:59 ------- Subject: Bug 30759 Author: simartin Date: Thu Jun 7 19:59:33 2007 New Revision: 125539 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125539 Log: 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. Added: trunk/gcc/testsuite/g++.dg/init/brace6.C Modified: trunk/gcc/ChangeLog trunk/gcc/c-common.c trunk/gcc/c-common.h trunk/gcc/c-cppbuiltin.c trunk/gcc/c-opts.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/decl.c trunk/gcc/cp/error.c trunk/gcc/cp/lex.c trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30759 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/30759] [4.1/4.2/4.3 Regression] initializer-list accepted for object of non-POD type 2007-02-10 19:56 [Bug c++/30759] New: initializer-list accepted for object of non-POD type gdr at gcc dot gnu dot org ` (4 preceding siblings ...) 2007-06-07 19:59 ` simartin at gcc dot gnu dot org @ 2007-06-08 18:28 ` simartin at gcc dot gnu dot org 2008-07-04 21:57 ` [Bug c++/30759] [4.2 " jsm28 at gcc dot gnu dot org 2009-03-30 21:32 ` jsm28 at gcc dot gnu dot org 7 siblings, 0 replies; 9+ messages in thread From: simartin at gcc dot gnu dot org @ 2007-06-08 18:28 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from simartin at gcc dot gnu dot org 2007-06-08 18:27 ------- Fixed on the mainline. -- simartin at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simartin at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30759 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/30759] [4.2 Regression] initializer-list accepted for object of non-POD type 2007-02-10 19:56 [Bug c++/30759] New: initializer-list accepted for object of non-POD type gdr at gcc dot gnu dot org ` (5 preceding siblings ...) 2007-06-08 18:28 ` simartin at gcc dot gnu dot org @ 2008-07-04 21:57 ` jsm28 at gcc dot gnu dot org 2009-03-30 21:32 ` jsm28 at gcc dot gnu dot org 7 siblings, 0 replies; 9+ messages in thread From: jsm28 at gcc dot gnu dot org @ 2008-07-04 21:57 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from jsm28 at gcc dot gnu dot org 2008-07-04 21:56 ------- Closing 4.1 branch. -- jsm28 at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[4.1/4.2 Regression] |[4.2 Regression] |initializer-list accepted |initializer-list accepted |for object of non-POD type |for object of non-POD type Target Milestone|4.1.3 |4.2.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30759 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/30759] [4.2 Regression] initializer-list accepted for object of non-POD type 2007-02-10 19:56 [Bug c++/30759] New: initializer-list accepted for object of non-POD type gdr at gcc dot gnu dot org ` (6 preceding siblings ...) 2008-07-04 21:57 ` [Bug c++/30759] [4.2 " jsm28 at gcc dot gnu dot org @ 2009-03-30 21:32 ` jsm28 at gcc dot gnu dot org 7 siblings, 0 replies; 9+ messages in thread From: jsm28 at gcc dot gnu dot org @ 2009-03-30 21:32 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from jsm28 at gcc dot gnu dot org 2009-03-30 21:32 ------- Closing 4.2 branch, fixed in 4.3. -- jsm28 at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Known to fail|4.1.1 4.2.0 |4.1.1 4.2.0 4.2.5 Resolution| |FIXED Target Milestone|4.2.5 |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30759 ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-03-30 21:32 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-02-10 19:56 [Bug c++/30759] New: initializer-list accepted for object of non-POD type gdr at gcc dot gnu dot org 2007-02-10 21:08 ` [Bug c++/30759] [4.1/4.2/4.3 Regression] " pinskia at gcc dot gnu dot org 2007-02-14 9:22 ` mmitchel at gcc dot gnu dot org 2007-02-19 21:07 ` mmitchel at gcc dot gnu dot org 2007-05-26 18:50 ` patchapp at dberlin dot org 2007-06-07 19:59 ` simartin at gcc dot gnu dot org 2007-06-08 18:28 ` simartin at gcc dot gnu dot org 2008-07-04 21:57 ` [Bug c++/30759] [4.2 " jsm28 at gcc dot gnu dot org 2009-03-30 21:32 ` jsm28 at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).