public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rodolfo at rodsoft dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/44753] New: [4.5 Regression] class partial specialization error Date: Thu, 01 Jul 2010 16:03:00 -0000 [thread overview] Message-ID: <bug-44753-6196@http.gcc.gnu.org/bugzilla/> (raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1074 bytes --] The following code compiles on gcc-4.2/4.3/4.4 but doesn't on gcc-4.5, with error: aggregate foo<identity<int>, 0> bar has incomplete type and cannot be defined template <class T> struct identity { typedef T type; }; template <class T, typename T::type A> struct foo {}; template <class T, T A> struct foo<identity<T>, A> {}; int main() { foo<identity<int>,0> bar; // error here } g++ somehow is messed up because foo is defined, and it should pick the partial specialization. If we comment the latter, it compiles, picking the main foo definition. -- Summary: [4.5 Regression] class partial specialization error Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rodolfo at rodsoft dot org GCC build triplet: x86_64-pc-linux-gnu GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44753
next reply other threads:[~2010-07-01 16:03 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-07-01 16:03 rodolfo at rodsoft dot org [this message] 2010-07-05 1:29 ` [Bug c++/44753] " pinskia at gcc dot gnu dot org 2010-07-22 8:59 ` rguenth at gcc dot gnu dot org 2010-07-22 9:05 ` rguenth 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=bug-44753-6196@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).