Ping.
On Sat, 4 Feb 2023, at 10:50, Ed Catmur wrote:
> Per
> http://wiki.dwarfstd.org/index.php?title=C%2B%2B0x:_Variadic_templates
> DW_TAG_GNU_formal_parameter_pack should have a DW_AT_name:
>
> 17$: DW_TAG_formal_parameter_pack
> DW_AT
attribute
DW_AT_type(reference to 13$)
(...)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70536
From 2c50fbbfdd42c9ecb6d6b8e4c53bb3029ef1ee25 Mon Sep 17 00:00:00 2001
From: Ed Catmur
Date: Sat, 12 Mar 2022 17:38:33 +
Subject: [PATCH] emit DW_AT_name for DW_TAG_GNU_formal_parameter
If two arrays do not have the exact same element type including qualification,
this could be e.g. f(int (&&)[]) vs. f(int const (&)[]), which can still be
distinguished by the lvalue-rvalue tiebreaker.
By tightening this branch (in accordance with the letter of the Standard) we
fall through to
nd tested on x86_64-pc-linux-gnu.
Signed-off-by: Ed Catmur
PR c++/104996
gcc/cp/ChangeLog:
* call.cc (compare_ics): When comparing list-initialization sequences,
do not return early.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/initlist129.C: New test.
---
gc
attribute
DW_AT_type(reference to 13$)
(...)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70536From 2c50fbbfdd42c9ecb6d6b8e4c53bb3029ef1ee25 Mon Sep 17 00:00:00 2001
From: Ed Catmur
Date: Sat, 12 Mar 2022 17:38:33 +
Subject: [PATCH] emit DW_AT_name for DW_TAG_GNU_formal_parameter
Per http://wiki.dwarfstd.org/index.php?title=C%2B%2B0x:_Variadic_templates
DW_TAG_GNU_formal_parameter_pack should have a DW_AT_name:
17$: DW_TAG_formal_parameter_pack
DW_AT_name("args")
18$: DW_TAG_formal_parameter
! no DW_AT_name attribute
This patch series improves conformance to the C++ standard for C-style casts
(explicit cast notation, [expr.cast]) in two scenarios.
First, as discussed in CWG 909 [1], a C-style cast may invoke a user-defined
conversion (as a static_cast) followed by a const_cast; currently this is
erroneously
PR c++/77465 - [DR909] rejected C-style cast involving casting away constness
from result of conversion operator
PR c++/77465
gcc/cp/ChangeLog:
* call.c (tourney):
(joust):
(build_user_type_conversion_1):
(reference_binding):
(implicit_conversion_
gcc/cp/ChangeLog:
* call.c (reference_binding):
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/constexpr-union.C:
* g++.dg/warn/Wstrict-aliasing-5.C:
* g++.old-deja/g++.jason/rvalue3.C:
* g++.dg/conversion/explicit1.C: New test.
0002-Add-const-qualification-to-s
gcc/testsuite/ChangeLog:
* g++.dg/conversion/explicit2.C: New test.
* g++.dg/conversion/explicit3.C: New test.
0003-Add-tests-verifying-conformance-to-explicit.patch
Description: Binary data
10 matches
Mail list logo