From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17680 invoked by alias); 8 Jul 2013 00:15:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 17619 invoked by uid 48); 8 Jul 2013 00:15:28 -0000 From: "vince.rev at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57846] New: CRTP, templates, metaprogramming, forwarding and static member Date: Mon, 08 Jul 2013 00:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vince.rev at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg00401.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57846 Bug ID: 57846 Summary: CRTP, templates, metaprogramming, forwarding and static member Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vince.rev at gmail dot com This code (I could not find a simpler example) does not compile under g++ f= or some obscure reasons (tested with 4.8.1 and 4.7.2) (see the related discuss= ion on stack overflow here : http://stackoverflow.com/questions/17515079/crtp-templates-metaprogramming-= forwarding-and-static-member-a-bug-in-g-4-8): ------------------------------------------------------------- #include #include #include #include #include template struct Base { template >::type> inline const Type& get() const {return std::get(data);} template >::type> inline Crtp& set(co= nst Type& value) {std::get(data) =3D value; return static_cast(*t= his);} std::tuple data; }; template struct Derived : public Base, std::array> { template , std::array>>().template get<0>(std::declval()...))> inline Template test(Args&&... args) const {return this->template get<0>(std::forward(args)...);}=20 template , std::array>>().template set<0>(std::declval()...))> inline Derived& test(Args&&... args) {return this->template set<0>(std::forward(args)...);}=20 static void check() {Derived derived; std::cout< derived; std::cout<::check(); // Not working: error: no match for =E2=80=98operator[]=E2=80=99 (operand types are =E2=80=98Derived=E2=80=99 and =E2=80=98int=E2=80=99) return 0; } ------------------------------------------------------------- >>From gcc-bugs-return-425895-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jul 08 03:22:59 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6919 invoked by alias); 8 Jul 2013 03:22:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6890 invoked by uid 48); 8 Jul 2013 03:22:55 -0000 From: "lxz at knd dot com.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/57847] New: Compile ARM linux kernel with configuration of SLUB allocator, kernel failed to boot Date: Mon, 08 Jul 2013 03:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.7.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lxz at knd dot com.cn X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg00402.txt.bz2 Content-length: 667 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57847 Bug ID: 57847 Summary: Compile ARM linux kernel with configuration of SLUB allocator, kernel failed to boot Product: gcc Version: 4.7.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: lxz at knd dot com.cn Tested kernel version is 3.2.21 and 3.2. Kernel encounters "data abort" during initiation. Problem exists in gcc 4.7.3 and 4.8.1, but 4.6.3 works fine. Changing kernel configuration to SLAB allocator is a workaround.