[Bug libstdc++/69600] [5 Regression] Incorrect use of copy-assignment instead of move assignment from function

2024-08-27 Thread sshannin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69600 --- Comment #7 from sshannin at gmail dot com --- Comment on attachment 37541 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37541 preprocessed source > #include > #include > #include >typedef std::unique_ptr inner_va

[Bug c++/98980] New: Very slow compilation with -Wduplicated-branches and ubsan

2021-02-05 Thread sshannin at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sshannin at gmail dot com Target Milestone: --- Created attachment 50136 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50136&action=edit the code I have attached a heavily

[Bug libstdc++/96269] optional comparison with nullopt fails

2020-11-05 Thread sshannin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96269 --- Comment #6 from sshannin at gmail dot com --- Thanks to you both for your analysis. As I said, I wasn't sure if it was an issue, so I'm certainly willing to accept that it's not. The one point I wanted to emphasize though ju

[Bug libstdc++/96269] optional comparison with nullopt fails

2020-07-21 Thread sshannin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96269 --- Comment #2 from sshannin at gmail dot com --- (In reply to Jonathan Wakely from comment #1) > Your operator== should be const-qualified. I don't disagree. I can also fully remove the operator== and it compiles as well (why sh

[Bug libstdc++/96269] New: optional comparison with nullopt fails

2020-07-21 Thread sshannin at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: sshannin at gmail dot com Target Milestone: --- Consider the following: seth@dev6:~/tmp$ cat opt.cpp #include struct X { template bool operator==(const T&) { return false; } }; bool foo() { std::option

[Bug tree-optimization/96034] missed optimization with extended registers

2020-07-02 Thread sshannin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96034 sshannin at gmail dot com changed: What|Removed |Added Resolution|--- |INVALID Status

[Bug tree-optimization/96034] New: missed optimization with extended registers

2020-07-02 Thread sshannin at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sshannin at gmail dot com Target Milestone: --- Noticed in example for PR96009. Consider this simple function: double bar(char i) { return i; } Compiled with -O3, we get: movsbl %dil, %edi pxor %xmm0

[Bug c/96009] New: missed optimization with floating point operations and integer literals

2020-06-30 Thread sshannin at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sshannin at gmail dot com Target Milestone: --- Consider the two variants below: double foo(char i) { double f = i * 100; return f / 100; } double bar(char i) { return

[Bug sanitizer/90865] ubsan causes coverage branch errors

2019-06-20 Thread sshannin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90865 sshannin at gmail dot com changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED

[Bug sanitizer/90865] ubsan causes coverage branch errors

2019-06-20 Thread sshannin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90865 --- Comment #6 from sshannin at gmail dot com --- Since we all agree that the current behavior is undesirable and since Jakub proposes a possible solution, would it be reasonable to reopen this? For large (multi-hour) test suites, it would be

[Bug sanitizer/90865] ubsan causes coverage branch errors

2019-06-13 Thread sshannin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90865 --- Comment #2 from sshannin at gmail dot com --- Thanks for such a quick reply. I just wanted to make sure I'm understanding you correctly about what you mean when you say this is expected. Are you indicating that it's desirable that

[Bug sanitizer/90865] New: ubsan causes coverage branch errors

2019-06-12 Thread sshannin at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: sshannin at gmail dot com CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Code

[Bug other/86095] New: stale documentation for -Wunsafe-loop-optimizations

2018-06-08 Thread sshannin at gmail dot com
Component: other Assignee: unassigned at gcc dot gnu.org Reporter: sshannin at gmail dot com Target Milestone: --- For the man page shipped with 8.1.0, the description of -Wunsafe-loop-optimizations still references the -funsafe-loop-optimizations option, however that optimization is

[Bug libstdc++/85792] New: #include triggers Wctor-dtor-privcay

2018-05-15 Thread sshannin at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: sshannin at gmail dot com Target Milestone: --- seth@dev9:~$ cat tmp.cpp #include seth@dev9:~$ /build/toolchain13/bin/g++ tmp.cpp -Wctor-dtor-privacy -std=c++17 -c In file included from tmp.cpp:1: /build/toolchain13/include/c

[Bug c++/85761] New: ICE on invalid in rtl with uncaptured constexpr

2018-05-12 Thread sshannin at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sshannin at gmail dot com Target Milestone: --- Reduced test case shown below. Easily resolved by fixing the code (capturing COUNT or just moving its decl into the lambda), so not that interesting, but still an ICE

[Bug libstdc++/69600] [5 Regression] Incorrect use of copy-assignment instead of move assignment from function

2017-01-17 Thread sshannin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69600 --- Comment #6 from sshannin at gmail dot com --- Thanks for the update : )

[Bug c++/69600] Incorrect use of copy-assignment instead of move assignment from function

2016-11-14 Thread sshannin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69600 --- Comment #4 from sshannin at gmail dot com --- FWIW, this seems to be fixed on trunk. Still fails for at least 6.2, 5.4, and 4.9.4, but does compile with 7/trunk and 4.8.5 https://godbolt.org/g/hx9q4S

[Bug c++/66999] Missing comma in lambda capture causes internal compiler error

2016-02-05 Thread sshannin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66999 sshannin at gmail dot com changed: What|Removed |Added CC||sshannin at gmail dot com

[Bug c++/69600] Incorrect use of copy-assignment instead of move assignment from function

2016-02-01 Thread sshannin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69600 --- Comment #3 from sshannin at gmail dot com --- (In reply to Jonathan Wakely from comment #2) > The value_type of your map is pair an you > can't move the first part of that pair, and you can't copy the second part > of that

[Bug c++/69600] Incorrect use of copy-assignment instead of move assignment from function

2016-02-01 Thread sshannin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69600 --- Comment #1 from sshannin at gmail dot com --- Created attachment 37542 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37542&action=edit Error output Error output from compiler. Note it also fails to indicate which line the prob

[Bug c++/69600] New: Incorrect use of copy-assignment instead of move assignment from function

2016-02-01 Thread sshannin at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sshannin at gmail dot com Target Milestone: --- Created attachment 37541 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37541&action=edit preprocessed source

[Bug c++/60750] double free after std::move on string inside throw when compiled with optimization

2014-04-03 Thread sshannin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60750 --- Comment #3 from sshannin at gmail dot com --- As a note that may help pin things down, removing either call to std::move() or removing the concatenation with err_prefix done in call to the std::runtime_error constructor seems to resolve this

[Bug c++/60750] New: double free after std::move on string inside throw when compiled with optimization

2014-04-03 Thread sshannin at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sshannin at gmail dot com Host: Linux hostname 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

[Bug c++/59760] use_thunk internal error on default destructor declarations

2014-01-13 Thread sshannin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59760 --- Comment #3 from sshannin at gmail dot com --- Created attachment 31821 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31821&action=edit Preprocessed source Preprocessed source of compilation from example in previous link. Sou

[Bug c++/59760] use_thunk internal error on default destructor declarations

2014-01-10 Thread sshannin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59760 --- Comment #1 from sshannin at gmail dot com --- For a simpler example, see https://lists.debian.org/debian-gcc/2013/12/msg00107.html

[Bug c++/59760] New: use_thunk internal error on default destructor declarations

2014-01-10 Thread sshannin at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sshannin at gmail dot com Host: Linux hostname 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Target

[Bug c++/58948] c++0x support for enums in namespaces

2013-11-01 Thread sshannin at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58948 --- Comment #2 from sshannin at gmail dot com --- Ahh, good call. I forgot that it would parse like that. I wonder if there's any way to declare it such that the namespaces/types are unambiguous that will parse correctly in both the c++11

[Bug c++/58948] New: c++0x support for enums in namespaces

2013-10-31 Thread sshannin at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: sshannin at gmail dot com Host: gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) Target: x86_64-linux-gnu Build: Configured with: ../src/configure -v --with-pkgversion='U