public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108096] New: [13 regression] libreoffice build failure #2
@ 2022-12-14 10:56 manuel.lauss at googlemail dot com
2022-12-14 11:18 ` [Bug c++/108096] [13 regression] libreoffice build failure #2 since r13-4564 jakub at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: manuel.lauss at googlemail dot com @ 2022-12-14 10:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108096
Bug ID: 108096
Summary: [13 regression] libreoffice build failure #2
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: manuel.lauss at googlemail dot com
Target Milestone: ---
Created attachment 54088
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54088&action=edit
comrpessed preprocessed source
This is a followup to PR108071.
With todays gcc-trunk (g:693638252aae9b36b5b928d7195df6d28bf409d7), libreoffice
build fails with another new error:
# g++ -c backupfilehelper.i
backupfilehelper.i: In instantiation of 'constexpr bool
std::__check_constructible() [with _ValueType = rtl::OUString; _Tp = const
char* const&]':
backupfilehelper.i:25254:119: required from '_ForwardIterator
std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with
_InputIterator = const char* const*; _ForwardIterator = rtl::OUString*]'
backupfilehelper.i:25380:37: required from '_ForwardIterator
std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator,
allocator<_Tp>&) [with _InputIterator = const char* const*; _ForwardIterator =
rtl::OUString*; _Tp = rtl::OUString]'
backupfilehelper.i:40712:33: required from 'void std::vector<_Tp,
_Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator,
std::forward_iterator_tag) [with _ForwardIterator = const char* const*; _Tp =
rtl::OUString; _Alloc = std::allocator<rtl::OUString>]'
backupfilehelper.i:40361:23: required from 'std::vector<_Tp,
_Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with
_InputIterator = const char* const*; <template-parameter-2-2> = void; _Tp =
rtl::OUString; _Alloc = std::allocator<rtl::OUString>; allocator_type =
std::allocator<rtl::OUString>]'
backupfilehelper.i:62388:9: required from here
backupfilehelper.i:25201:56: error: static assertion failed: result type must
be constructible from input type
25201 | static_assert(is_constructible<_ValueType, _Tp>::value,
| ^~~~~
backupfilehelper.i:25201:56: note: 'std::integral_constant<bool, false>::value'
evaluates to false
The offending code is:
const std::vector< OUString >& f()
{
static std::vector< OUString > aDirNames =
{
"config",
"registry",
"psprint",
"store",
"temp",
"pack"
};
return aDirNames;
}
Find attached the compressed preprocessed source.
Thank you!
Manuel
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/108096] [13 regression] libreoffice build failure #2 since r13-4564
2022-12-14 10:56 [Bug c++/108096] New: [13 regression] libreoffice build failure #2 manuel.lauss at googlemail dot com
@ 2022-12-14 11:18 ` jakub at gcc dot gnu.org
2022-12-14 11:25 ` redi at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-12-14 11:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108096
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2022-12-14
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org,
| |redi at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Summary|[13 regression] libreoffice |[13 regression] libreoffice
|build failure #2 |build failure #2 since
| |r13-4564
Priority|P3 |P1
Target Milestone|--- |13.0
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This one started with r13-4564-gd081807d8d70e3e87eae41e1560e54d503f4d465
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/108096] [13 regression] libreoffice build failure #2 since r13-4564
2022-12-14 10:56 [Bug c++/108096] New: [13 regression] libreoffice build failure #2 manuel.lauss at googlemail dot com
2022-12-14 11:18 ` [Bug c++/108096] [13 regression] libreoffice build failure #2 since r13-4564 jakub at gcc dot gnu.org
@ 2022-12-14 11:25 ` redi at gcc dot gnu.org
2022-12-14 11:32 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-12-14 11:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108096
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Similar problem to PR 108071. The OUString type can only be constructed from
char(&)[N] and const char(&)[N], not from const char*. The original code
constructs initializer_list<OUString> and so each element is initialized
directly from an array. The new code decays the arrays to
initializer_list<const char*> and then fails to construct OUString objects from
const char* const values.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/108096] [13 regression] libreoffice build failure #2 since r13-4564
2022-12-14 10:56 [Bug c++/108096] New: [13 regression] libreoffice build failure #2 manuel.lauss at googlemail dot com
2022-12-14 11:18 ` [Bug c++/108096] [13 regression] libreoffice build failure #2 since r13-4564 jakub at gcc dot gnu.org
2022-12-14 11:25 ` redi at gcc dot gnu.org
@ 2022-12-14 11:32 ` redi at gcc dot gnu.org
2022-12-14 12:36 ` jason at gcc dot gnu.org
2022-12-15 5:27 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2022-12-14 11:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108096
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Reduced:
#include <initializer_list>
template<bool> struct enable_if { };
template<> struct enable_if<true> { using type = void; };
template<typename T> constexpr bool is_array_v = false;
template<typename T, std::size_t N> constexpr bool is_array_v<T[N]> = true;
struct OUString
{
template<typename T, typename = typename enable_if<is_array_v<T>>::type>
OUString(T&) { }
};
struct vector
{
vector(std::initializer_list<OUString>) { }
template<typename Iter>
vector(Iter i, Iter j) { if (i != j) OUString(*i); }
};
vector v = { "" };
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/108096] [13 regression] libreoffice build failure #2 since r13-4564
2022-12-14 10:56 [Bug c++/108096] New: [13 regression] libreoffice build failure #2 manuel.lauss at googlemail dot com
` (2 preceding siblings ...)
2022-12-14 11:32 ` redi at gcc dot gnu.org
@ 2022-12-14 12:36 ` jason at gcc dot gnu.org
2022-12-15 5:27 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2022-12-14 12:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108096
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/108096] [13 regression] libreoffice build failure #2 since r13-4564
2022-12-14 10:56 [Bug c++/108096] New: [13 regression] libreoffice build failure #2 manuel.lauss at googlemail dot com
` (3 preceding siblings ...)
2022-12-14 12:36 ` jason at gcc dot gnu.org
@ 2022-12-15 5:27 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2022-12-15 5:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108096
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed by r13-4712.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-12-15 5:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-14 10:56 [Bug c++/108096] New: [13 regression] libreoffice build failure #2 manuel.lauss at googlemail dot com
2022-12-14 11:18 ` [Bug c++/108096] [13 regression] libreoffice build failure #2 since r13-4564 jakub at gcc dot gnu.org
2022-12-14 11:25 ` redi at gcc dot gnu.org
2022-12-14 11:32 ` redi at gcc dot gnu.org
2022-12-14 12:36 ` jason at gcc dot gnu.org
2022-12-15 5:27 ` jason at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).