From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 89A883858C20; Sat, 30 Sep 2023 14:57:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89A883858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696085875; bh=iy/fHaVIiluSEA+abBtfglC8G0OqPmi1aB1vmHuID/8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Gu7uJaYc5x4gJlO7OefXhIRieleen0yLuwlYyMHApubtZZ+Ga/E2ntW8KVJvMIchu JyEJN425U59TIqWTAdI0RyWGKOLmEuACCxkKpkZbFnJ1JaS2TYklo7bPBOb5sfRac1 5kPZqPnQ0uUjjoCKN6VdGsE9lJT/i7TDmsnhuofM= From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBib290c3RyYXAvMTExNjQyXSBbMTQgUmVncmVzc2lvbl0g?= =?UTF-8?B?Ym9vdHN0cmFwNCBvciBwcm9maWxlZGJvb3RzdHJhcCBmYWlsdXJlOiBwb2x5?= =?UTF-8?B?LWludC5oOjQ1Mzo1OiBlcnJvcjogdG9vIG1hbnkgaW5pdGlhbGl6ZXJzIGZv?= =?UTF-8?B?ciDigJhsb25nIGludCBbMV3igJkgKHBvc3NpYmx5IHNpbmNlIHIxNC00MzM5?= =?UTF-8?B?LWdlYWE0MWE2ZGMxMjdkOCk=?= Date: Sat, 30 Sep 2023 14:57:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111642 --- Comment #7 from Sergei Trofimovich --- If I try to build the file with `clang++-16` I'm getting the following erro= r: In file included from /home/slyfox/dev/git/gcc/gcc/rtl-tests.cc:22: In file included from /home/slyfox/dev/git/gcc/gcc/coretypes.h:480: /home/slyfox/dev/git/gcc/gcc/poly-int.h:453:14: error: excess elements in a= rray initializer : coeffs { (typename poly_coeff_traits:: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/slyfox/dev/git/gcc/gcc/poly-int.h:438:5: note: in instantiation of function template specialization 'poly_int<1, long>::poly_int' requested here : poly_int (typename poly_int_fullness=3D N>::type (), ^ /home/slyfox/dev/git/gcc/gcc/rtl-tests.cc:249:26: note: in instantiation of function template specialization 'poly_int<1, long>::poly_int' requested here rtx x1 =3D gen_int_mode (poly_int64 (1, 1), QImode); ^ Which sounds like we should not try to create polynomials with values more = than `NUM_POLY_INT_COEFFS` (=3D=3D 1 on x86_64). I'm still not sure if the templates are expected to defer build failure in = this case or it's a c++ syntax error in gcc's code.=