From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B40E2385840E; Wed, 16 Feb 2022 22:58:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B40E2385840E From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/104567] SFINAE check failure with trying to access member field Date: Wed, 16 Feb 2022 22:58:58 +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.7.1 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords everconfirmed bug_status cf_known_to_fail cf_reconfirmed_on short_desc 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: Wed, 16 Feb 2022 22:58:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104567 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Known to fail| |4.1.2, 4.6.4 Last reconfirmed| |2022-02-16 Summary|SFINAE check failure |SFINAE check failure with |starting gcc 4.7.1 and up |trying to access member |with -std=3Dc++11 |field --- Comment #2 from Andrew Pinski --- Actually it has always failed. Here is a C++98 testcase which shows the issue even with GCC 4.1.2: template bool has_char_static_param(int) { return true; } template bool has_char_static_param(...) { return false; } struct checked_type { int param; }; int main() { int t =3D has_char_static_param(0); return t; }=