public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/49470] no matching constructor for initialization errors not detected in g++ Date: Mon, 20 Jun 2011 10:27:00 -0000 [thread overview] Message-ID: <bug-49470-4-OHg9DF4TRz@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-49470-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49470 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Severity|normal |enhancement --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-20 10:26:56 UTC --- The summary isn't very relevant, the problem has nothing to do with constructors, it's just that g++ doesn't check before instantiation whether no valid specialization can be formed for a template. 14.6 [temp.res] p7: If no valid specialization can be generated for a template definition, and that template is not instantiated, the template definition is ill-formed, no diagnostic required. ... [ Note: If a template is instantiated, errors will be diagnosed according to the other rules in this Standard. Exactly when these errors are diagnosed is a quality of implementation issue. —end note ]
next prev parent reply other threads:[~2011-06-20 10:27 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-06-20 3:06 [Bug c++/49470] New: " howarth at nitro dot med.uc.edu 2011-06-20 3:12 ` [Bug c++/49470] " howarth at nitro dot med.uc.edu 2011-06-20 10:06 ` redi at gcc dot gnu.org 2011-06-20 10:27 ` redi at gcc dot gnu.org [this message] 2011-06-22 20:44 ` [Bug c++/49470] optional diagnostic not given for invalid mem-initializer in uninstantiated template jason at gcc dot gnu.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=bug-49470-4-OHg9DF4TRz@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).