public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dushistov at mail dot ru" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58194] New: default argument for constructor outside of class DR 1344 Date: Mon, 19 Aug 2013 18:30:00 -0000 [thread overview] Message-ID: <bug-58194-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58194 Bug ID: 58194 Summary: default argument for constructor outside of class DR 1344 Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dushistov at mail dot ru Such simple code accepted by gcc 4.8.1: struct Foo { Foo(const char *); }; Foo::Foo(const char *str = 0) { } There is DR 1344 about it: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#1344 and according to disscussion in clang mailing list: http://clang-developers.42468.n3.nabble.com/Reason-for-Diagnostic-on-default-ctors-redeclaration-td4032117.html Quote: This was last discussed by WG21 at the Bloomington meeting. Notes from there: "Consensus: Make this ill-formed as suggested in the write-up. Core issue 1344. Priority 0, Doug drafting." So it would be nice, if gcc emit error on such bad code.
next reply other threads:[~2013-08-19 18:30 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-08-19 18:30 dushistov at mail dot ru [this message] 2013-08-19 19:57 ` [Bug c++/58194] " paolo.carlini at oracle dot com 2015-03-24 12:27 ` [Bug c++/58194] [DR 1344] default argument for constructor outside of class paolo.carlini at oracle dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-58194-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).