build_aggr_conv did not correctly handle string literal member initializers.
Extended can_convert_array to handle this case. The additional checks of
compatibility of character types, and whether string literal will fit, would be
quite complicated, so are deferred until the actual conversion takes
Ping for this patch:
https://gcc.gnu.org/pipermail/gcc-patches/2020-December/562259.html
-Original Message-
From: Thomas Greenslade (thomgree)
Sent: 17 December 2020 22:12
To: gcc-patches@gcc.gnu.org
Subject: [PATCH] c++: fix string literal member initializer bug [PR90926
On 12/17/20 5:12 PM, Thomas Greenslade (thomgree) via Gcc-patches wrote:
build_aggr_conv did not correctly handle string literal member initializers.
Extended can_convert_array to handle this case. The additional checks of
compatibility of character types, and whether string literal will fit, wou
this a known bug or a new one?
-Original Message-
From: Jason Merrill
Sent: 22 January 2021 16:30
To: Tom Greenslade (thomgree) ; gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] c++: fix string literal member initializer bug [PR90926]
On 12/17/20 5:12 PM, Thomas Greenslade (t
foo"}’ from ‘’ to ‘A’", but works fine on Clang.
Is this a known bug or a new one?
That looks like the same bug you're fixing with this patch.
-Original Message-
From: Jason Merrill
Sent: 22 January 2021 16:30
To: Tom Greenslade (thomgree) ; gcc-patches@gcc.gnu.org
Subject: