public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jason at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/40308] Brace initialization fails for member initializers in constructor for class templates Date: Wed, 03 Jun 2009 18:12:00 -0000 [thread overview] Message-ID: <20090603181215.6173.qmail@sourceware.org> (raw) In-Reply-To: <bug-40308-17779@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from jason at gcc dot gnu dot org 2009-06-03 18:12 ------- Subject: Bug 40308 Author: jason Date: Wed Jun 3 18:11:53 2009 New Revision: 148141 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148141 Log: PR c++/40308 PR c++/40311 * typeck.c (cp_build_modify_expr): Always pass init-lists to the conversion code. * call.c (implicit_conversion): Allow init-list conversion to scalar during direct-initialization, too. Mark the conversion bad if it has too many levels of braces. (convert_like_real): And give a helpful error. PR c++/40306 PR c++/40307 * decl.c (cp_finish_decl): Handle auto deduction from (). * typeck.c (build_x_indirect_ref): Handle dereferencing an operand with dependent type that is known to be a pointer. * call.c (implicit_conversion): Handle conversion from initializer-list to scalar. (convert_like_real): Likewise. Avoid crashing on list initialization with bad conversions. Added: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/auto14.C - copied unchanged from r148089, trunk/gcc/testsuite/g++.dg/cpp0x/auto14.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/initlist16.C - copied unchanged from r147933, trunk/gcc/testsuite/g++.dg/cpp0x/initlist16.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/initlist17.C - copied unchanged from r147933, trunk/gcc/testsuite/g++.dg/cpp0x/initlist17.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/initlist18.C - copied unchanged from r148089, trunk/gcc/testsuite/g++.dg/cpp0x/initlist18.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/initlist19.C - copied unchanged from r148089, trunk/gcc/testsuite/g++.dg/cpp0x/initlist19.C Modified: branches/gcc-4_4-branch/gcc/cp/ChangeLog branches/gcc-4_4-branch/gcc/cp/call.c branches/gcc-4_4-branch/gcc/cp/decl.c branches/gcc-4_4-branch/gcc/cp/typeck.c branches/gcc-4_4-branch/gcc/testsuite/ChangeLog branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/initlist13.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40308
prev parent reply other threads:[~2009-06-03 18:12 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-05-30 14:47 [Bug c++/40308] New: " public at alisdairm dot net 2009-06-02 17:03 ` [Bug c++/40308] " jason at gcc dot gnu dot org 2009-06-02 20:14 ` jason at gcc dot gnu dot org 2009-06-03 18:12 ` jason at gcc dot gnu dot org [this message]
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=20090603181215.6173.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).