public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58194] New: default argument for constructor outside of class DR 1344
@ 2013-08-19 18:30 dushistov at mail dot ru
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
0 siblings, 2 replies; 3+ messages in thread
From: dushistov at mail dot ru @ 2013-08-19 18:30 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/58194] default argument for constructor outside of class DR 1344
2013-08-19 18:30 [Bug c++/58194] New: default argument for constructor outside of class DR 1344 dushistov at mail dot ru
@ 2013-08-19 19:57 ` 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
1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-08-19 19:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58194
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |SUSPENDED
Last reconfirmed| |2013-08-19
Ever confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
The issue is still in drafting status, thus I'm suspending this.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/58194] [DR 1344] default argument for constructor outside of class
2013-08-19 18:30 [Bug c++/58194] New: default argument for constructor outside of class DR 1344 dushistov at mail dot ru
2013-08-19 19:57 ` [Bug c++/58194] " paolo.carlini at oracle dot com
@ 2015-03-24 12:27 ` paolo.carlini at oracle dot com
1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-24 12:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58194
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |NEW
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Unsuspending, this is now C++14
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-24 11:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-19 18:30 [Bug c++/58194] New: default argument for constructor outside of class DR 1344 dushistov at mail dot ru
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
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).