From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16543 invoked by alias); 24 Sep 2014 14:25:10 -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 16515 invoked by uid 48); 24 Sep 2014 14:25:04 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63356] Compilation failure where clang does not have problems Date: Wed, 24 Sep 2014 14:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: Message-ID: In-Reply-To: References: 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: 2014-09/txt/msg02267.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63356 --- Comment #7 from Markus Trippelsdorf --- Or a bit more compact and obfuscated: template struct A { static constexpr _Tp value = 0; }; template struct B; template struct B<_B1> : _B1 {}; template _Tp declval(); template struct C { template ()))> static A __test(int); typedef decltype(__test<_From, _To>(0)) type; }; template struct I : C<_From, _To>::type {}; template struct D {}; template struct F { _T1 first; template >::value>::type> F(F<_U1, _U2>); template F(_T1 p1, _U2) : first(p1) {} }; class G; class H { public: void push_back(F, int>, int *>); }; class G { public: template G(PointType); H processEvent__counts_from_scanline; template void processEvent_(cT, iT, iT) { processEvent__counts_from_scanline.push_back( F, int>, int *>(F, int>(F(0, 0), 0), 0)); } void get_dispatch() { get_fracture(0, 0, 0); } template void get_fracture(output_container, int, concept_type) { processEvent_(0, 0, 0); } };