From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0F63A3856DDF; Wed, 17 May 2023 06:39:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F63A3856DDF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684305591; bh=Zhu9Rv6Q/vwPLUAzgzqPT1ih4FzJsPBpZ5idMLVX0iQ=; h=From:To:Subject:Date:From; b=GhbwsG7tmoMcF7u974cFN47ptdJvTI8jrQZo8m7DQTNtHx0FIduIXAGHeL4v+9Q70 7wLu3V/c13NWRbsd+6x9V/xHvoa+R2aJ2p/HBDcMFNtCwZIQDxqeHzWua2o0jS/PBX KVsGQr26VCfv4aQvKyOGXZW5bXybHqMlum5sONtQ= From: "matt at mattborland dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109883] New: Stack Overflow in functions with types Date: Wed, 17 May 2023 06:39:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: matt at mattborland dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D109883 Bug ID: 109883 Summary: Stack Overflow in functions with types Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: matt at mattborland dot com Target Milestone: --- The two or more argument functions in cause a stack overflow when called with an type and any integer type. Running with ASAN yiel= ds "AddressSanitizer: nested bug in the same thread". I am able to reproduce t= his bug on Fedora 38 with GCC 13.1.1 on x86_64, and macOS 13.3.1 with GCC 13.1.= 0 on M1. A minimal reproducer: #include #include int main() { std::pow(0.5F64, 2); }=