From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 566C73858433; Wed, 25 Oct 2023 13:06:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 566C73858433 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698239175; bh=Bj8dxl9rStOK/8DvQxDGYjWlwNb2H2wRjw4bIzU9KGc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hi9KCOG3T8ccymGfqkosKHeG4JVUJaFlkee3g0+p4NKgi1xag2ectt6IB+/V1zyeP /IHErdb8n+iDf4c8lvHBBnuwldui3Fkdt74bFwy56kjH/Bww9nzClbUNi84SeujKAp YwfeLJZRNmq8Dn3jn4evrqm5NZKxEROS3Eh/8HUA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99804] cannot convert bit field enum to its own type in a template member function Date: Wed, 25 Oct 2023 13:06:14 +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: 11.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 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=3D99804 --- Comment #4 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:fb28d5c6b0a47ab704290d0122f978d1e6346551 commit r14-4924-gfb28d5c6b0a47ab704290d0122f978d1e6346551 Author: Patrick Palka Date: Wed Oct 25 09:03:52 2023 -0400 c++: add fixed testcase [PR99804] We accept the non-dependent call f(e) here ever since the NON_DEPENDENT_EXPR removal patch r14-4793-gdad311874ac3b3. I haven't looked closely into why but I suspect wrapping 'e' in a NON_DEPENDENT_EXPR was causing the argument conversion to misbehave. PR c++/99804 gcc/testsuite/ChangeLog: * g++.dg/template/enum9.C: New test.=