public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "falk at debian dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/39798] would like flag to disable constructors for built-in types Date: Mon, 20 Apr 2009 15:28:00 -0000 [thread overview] Message-ID: <20090420152814.25985.qmail@sourceware.org> (raw) In-Reply-To: <bug-39798-17521@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from falk at debian dot org 2009-04-20 15:28 ------- Removing the default constructor is a bad idea, since it would break about any available library including the standard lib in subtle ways, and would make g++ pretty much unusable. But apparently this isn't actually what you really want anyway, but actually you want to be able to create STL containers with uninitialized memory. This seems to me a pretty unusual requirement, and it could be achieved by creating a wrapper class for int with empty constructor, so I don't think this justifies language or library changes. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39798
next prev parent reply other threads:[~2009-04-20 15:28 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-04-17 17:40 [Bug c++/39798] New: " kraftche at cae dot wisc dot edu 2009-04-20 15:28 ` falk at debian dot org [this message] 2009-04-20 15:52 ` [Bug c++/39798] " kraftche at cae dot wisc dot edu 2009-04-20 15:59 ` paolo dot carlini at oracle dot com 2009-04-21 18:14 ` pinskia at gcc dot gnu dot org
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=20090420152814.25985.qmail@sourceware.org \ --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).