From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F1CE13870910; Tue, 13 Oct 2020 11:02:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1CE13870910 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/97399] [9/10/11 Regression] g++ 9.3 cannot compile SFINAE code with separated declaration and definition, g++ 7.3 compiles Date: Tue, 13 Oct 2020 11:02:09 +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: 9.3.0 X-Bugzilla-Keywords: ice-on-valid-code, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work keywords cf_known_to_fail bug_status everconfirmed short_desc cf_reconfirmed_on target_milestone 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2020 11:02:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97399 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |7.5.0 Keywords| |ice-on-valid-code, | |rejects-valid Known to fail| |10.2.1 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Summary|g++ 9.3 cannot compile |[9/10/11 Regression] g++ |SFINAE code with separated |9.3 cannot compile SFINAE |declaration and definition, |code with separated |g++ 7.3 compiles |declaration and definition, | |g++ 7.3 compiles Last reconfirmed| |2020-10-13 Target Milestone|--- |9.4 --- Comment #2 from Richard Biener --- GCC 10 ICEs: > g++-10 t.C -S -std=3Dc++11 t.C: In substitution of 'template static constexpr enable_if_t<((tmp*)this)->is_integral(), bool> tmp::func(E, E) [with E = =3D int]': t.C:40:30: required from here t.C:19:43: internal compiler error: in tsubst_copy, at cp/pt.c:16383 19 | -> enable_if_t(), bool>; | ~~~~~~~~~~~~~~~~~~~^~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions.=