https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83389
--- Comment #4 from Luca Stoppa ---
(In reply to Jonathan Wakely from comment #2)
> This isn't a libstdc++ bug. std::tie is doing exactly what it's meant to do,
> which is generate a tuple of references, so of course it's not the same as
> compar
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83389
--- Comment #1 from Luca Stoppa ---
Created attachment 42846
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42846&action=edit
Generated assembler file
The code was compiled with
g++ -std=c++17 -O3 -S sample.cpp
g++ --version:
g++ (GCC) 7.
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: lucanus81 at gmail dot com
Target Milestone: ---
Created attachment 42845
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42845&action=edit
cpp file with the example
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78491
--- Comment #2 from Luca Stoppa ---
Just wanted to add that changing the vector element from "const std::string" to
"std::string" seems to fix this issue.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78491
--- Comment #1 from Luca Stoppa ---
Created attachment 40126
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40126&action=edit
full error message
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lucanus81 at gmail dot com
Target Milestone: ---
Created attachment 40125
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40125&action=edit
test case
when compiling the testcase attached her
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78399
--- Comment #1 from Luca Stoppa ---
Created attachment 40071
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40071&action=edit
Optimal code
erity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lucanus81 at gmail dot com
Target Milestone: ---
Created attachment 40070
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40070&action=edit
suboptimal co
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78391
--- Comment #2 from Luca Stoppa ---
(In reply to Richard Biener from comment #1)
> -Wuninitialized requires optimization to handle this case.
I see thanks. Considering that I found this bug in our unit tests, I'll simply
add -O1 in order to avoi
tatus: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lucanus81 at gmail dot com
Target Milestone: ---
Created attachment 40063
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40063&
10 matches
Mail list logo