public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/44753] New: [4.5 Regression] class partial specialization error @ 2010-07-01 16:03 rodolfo at rodsoft dot org 2010-07-05 1:29 ` [Bug c++/44753] " pinskia at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: rodolfo at rodsoft dot org @ 2010-07-01 16:03 UTC (permalink / raw) To: gcc-bugs [-- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/44753] [4.5 Regression] class partial specialization error 2010-07-01 16:03 [Bug c++/44753] New: [4.5 Regression] class partial specialization error rodolfo at rodsoft dot org @ 2010-07-05 1:29 ` 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 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2010-07-05 1:29 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2010-07-05 01:29 ------- Works on the trunk: GNU C++ (GCC) version 4.6.0 20100627 (experimental) [trunk revision 161476] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.0 20100627 (experimental) [trunk revision 161476], GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work|4.2.1 4.3.1 4.4.1 |4.2.1 4.3.1 4.4.1 4.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44753 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/44753] [4.5 Regression] class partial specialization error 2010-07-01 16:03 [Bug c++/44753] New: [4.5 Regression] class partial specialization error rodolfo at rodsoft dot org 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 2 siblings, 0 replies; 4+ messages in thread From: rguenth at gcc dot gnu dot org @ 2010-07-22 8:59 UTC (permalink / raw) To: gcc-bugs -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.5.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44753 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/44753] [4.5 Regression] class partial specialization error 2010-07-01 16:03 [Bug c++/44753] New: [4.5 Regression] class partial specialization error rodolfo at rodsoft dot org 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 2 siblings, 0 replies; 4+ messages in thread From: rguenth at gcc dot gnu dot org @ 2010-07-22 9:05 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from rguenth at gcc dot gnu dot org 2010-07-22 09:05 ------- Fixed on the branch. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44753 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-22 9:05 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-07-01 16:03 [Bug c++/44753] New: [4.5 Regression] class partial specialization error rodolfo at rodsoft dot org 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
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).