public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "schaub-johannes at web dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46831] New: Crash when it tries to do an invalid ICS with a conversion function template Date: Tue, 07 Dec 2010 03:21:00 -0000 [thread overview] Message-ID: <bug-46831-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46831 Summary: Crash when it tries to do an invalid ICS with a conversion function template Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: schaub-johannes@web.de GCC crashes on this struct B { }; struct D : B { }; struct A { // [C++0x] default template argument for function template template<typename T = void> operator D&(); }; void f(B&); int main() { f(A()); } This code clearly ill-formed by 13.3.3.1.2[over.ics.user] paragraph 3 . C.f. 13.3.3.1.4[ocer.ics.ref] paragraph 1.
next reply other threads:[~2010-12-07 3:21 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-07 3:21 schaub-johannes at web dot de [this message] 2010-12-07 4:09 ` [Bug c++/46831] [C++0x] " schaub.johannes at googlemail dot com 2010-12-07 10:59 ` paolo.carlini at oracle dot com 2010-12-07 11:22 ` rguenth at gcc dot gnu.org 2010-12-07 15:37 ` redi at gcc dot gnu.org 2010-12-27 19:48 ` [Bug c++/46831] [4.6 Regression][C++0x] " jakub at gcc dot gnu.org 2011-01-21 9:30 ` jakub at gcc dot gnu.org 2011-01-27 13:25 ` hjl.tools at gmail dot com 2011-01-27 13:42 ` hjl.tools at gmail dot com 2011-02-21 0:11 ` jason at gcc dot gnu.org 2011-02-21 2:12 ` jason at gcc dot gnu.org 2011-02-21 17:24 ` 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-46831-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).