[Bug c++/97720] throw in try in noexcept fn calls terminate without handling the exception

2023-05-23 Thread m101010a at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97720 --- Comment #6 from m101010a at gmail dot com --- > represent the second case in the action table as an empty exception > specification like C++98 throw() That will deal with this issue and PR88218, but won't solve PR55918 since

[Bug c++/97720] Sometimes std::current_exception does not work properly in the terminate handler

2022-12-16 Thread m101010a at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97720 --- Comment #3 from m101010a at gmail dot com --- After looking into this more, I have confirmed that this is definitely the cause of bug 97339, and found a simpler reproduction in bug 55918 comment #4: #include class Foo { public: Foo

[Bug c++/55918] Stack partially unwound when noexcept causes call to std::terminate

2022-12-16 Thread m101010a at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55918 m101010a at gmail dot com changed: What|Removed |Added CC||m101010a at gmail dot com

[Bug c++/108116] internal compiler error: in check_noexcept_r, at cp/except.cc:1074

2022-12-14 Thread m101010a at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108116 m101010a at gmail dot com changed: What|Removed |Added Attachment #54098|0 |1 is obsolete

[Bug c++/108116] New: internal compiler error: in check_noexcept_r, at cp/except.cc:1074

2022-12-14 Thread m101010a at gmail dot com via Gcc-bugs
-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- When compiling the code #include struct c { c(int); ~c(); }; struct d { d(std

[Bug c++/106395] [12/13 regression] [mingw] "redeclared without dllimport attribute: previous dllimport ignored" on C++ friend

2022-08-01 Thread m101010a at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106395 m101010a at gmail dot com changed: What|Removed |Added CC||m101010a at gmail dot com

[Bug c++/101831] New: Spurious maybe-uninitialized warning on std::array::size

2021-08-09 Thread m101010a at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- When calling std::array::size on an uninitialized array, gcc emits a warning: $ cat x.cpp #include int f() { std::array a

[Bug c++/97720] Sometimes std::current_exception does not work properly in the terminate handler

2020-11-04 Thread m101010a at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97720 --- Comment #2 from m101010a at gmail dot com --- > when the compiler can see there is no matching handler for the exception, > it doesn't perform stack unwinding This is fine, it's implementation-defined whether the stack i

[Bug c++/97720] New: Sometimes std::current_exception does not work properly in the terminate handler

2020-11-04 Thread m101010a at gmail dot com via Gcc-bugs
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- $ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/lto-wrapper

[Bug libstdc++/97339] New: std::async sometimes prevents std::current_exception from working properly in the terminate handler

2020-10-08 Thread m101010a at gmail dot com via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- If std::async is called with a noexcept function that throws an exception and contains a catch

[Bug c++/91873] New: -Wreturn-type diagnostic location changes depending on optimization level and destructor declaration

2019-09-23 Thread m101010a at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- $ cat x.cpp struct s { #ifdef HAS_DESTRUCTOR ~s(); #endif }; bool f(); int g() { s buf; if

[Bug c++/90508] New: GCC does not produce full template backtraces when instantiating but not calling virtual functions

2019-05-16 Thread m101010a at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- $ cat x.cpp template struct a { virtual b g() { return 0; } }; template void foo() { a

[Bug other/90411] Colored diagnostics can omit characters

2019-05-10 Thread m101010a at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90411 --- Comment #2 from m101010a at gmail dot com --- When I said to put spaces ELs at the end of lines, I meant the end of logical lines (e.g. \n), not the end of screen lines. Sorry for the confusion. You can't see this issue in gnome-ter

[Bug other/90411] New: Colored diagnostics can omit characters

2019-05-09 Thread m101010a at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- gcc prints EL (\33[K) every time it changes the text color to erase the rest of the line. If the cursor is at the end of the line, EL will clear the last character on the line

[Bug c++/90410] New: [feature request] -fdiagnostics-show-template-tree should expand mismatched reference parameters

2019-05-09 Thread m101010a at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- $ cat x.cpp template struct s{}; void byval(s); void byref(s&); void bycref(const s&); vo

[Bug c++/90161] New: GCC does not always dllexport constexpr member variables in C++17 mode

2019-04-18 Thread m101010a at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- $ cat x.cpp struct __attribute__((dllexport)) foo { static constexpr int i = 3; }; constexpr int foo::i; $ cat y.cpp struct

[Bug c/89051] -Wno-error= does not work for warning groups

2019-02-07 Thread m101010a at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89051 --- Comment #2 from m101010a at gmail dot com --- (In reply to Martin Sebor from comment #1) > I don't think GCC has an internal representation of warning groups It has to have some representation, because it can tell which warning group

[Bug c++/89144] New: GCC emits undefined references when a constexpr initializer_list appears in a template function

2019-01-31 Thread m101010a at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- $ cat x.cpp #include template void b() { constexpr std::initializer_list c{}; } int main() { b

[Bug c/89051] New: -Wno-error= does not work for warning groups

2019-01-24 Thread m101010a at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- $ cat x.c void f() { g(1); } $ gcc -fsyntax-only -Wall -Wno-implicit x.c $ gcc -fsyntax-only -Werror=all -Wno-error=implicit x.c x.c: In function ‘f’: x.c:1:12: error: implicit

[Bug c++/55319] Using -fwhole-program inhibits optimization

2019-01-24 Thread m101010a at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55319 m101010a at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution

[Bug c++/89050] New: GCC sometimes requires this to be captured when doing overload resolution but selecting a static member function

2019-01-24 Thread m101010a at gmail dot com
: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- $ cat x.cpp template struct A { static void f(); void f(int

[Bug c++/88806] New: extern "C" variables declared in different namespaces are considered different

2019-01-11 Thread m101010a at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- $ cat x.cpp namespace A { extern "C" int g; } namespace B { extern "C" int g; } using namespac

[Bug c++/88804] New: Inconsistently diagnosed unused but set static variable in lambda

2019-01-11 Thread m101010a at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- $ cat x.cpp void foo(int); template void call(T t) { t(0); } void bar() { static int x=3; call([](auto

[Bug c/88568] New: GCC cannot dllimport variables with undefined types

2018-12-21 Thread m101010a at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com CC: bangerth at apex68 dot ticam.utexas.edu, gcc-bugs at gcc dot gnu.org, loewis at gcc dot gnu.org, martin

[Bug c++/85012] New: GCC does not inline extern "C" functions defined in a different namespace

2018-03-20 Thread m101010a at gmail dot com
Keywords: missed-optimization Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- $ cat x.cpp namespace foo { extern "C" void f(); } extern &qu

[Bug c++/85011] New: GCC complains that 2 identical function prototypes are different

2018-03-20 Thread m101010a at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- $ cat x.cpp template struct foo { int x; auto f1() -> decltype(x); }; template auto

[Bug libstdc++/83607] New: std::boyer_moore_searcher is slow searching through arrays of std::byte

2017-12-27 Thread m101010a at gmail dot com
-optimization Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- Created attachment 42975 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42

[Bug c++/82336] New: GCC requires but does not emit defaulted constructors in certain cases

2017-09-26 Thread m101010a at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- When compiling the following source file, gcc requires a definition for bar::bar() but does not emit one, causing a linker error

[Bug target/81015] New: Bad codegen for __builtin_clz(unsigned short)

2017-06-07 Thread m101010a at gmail dot com
: target Assignee: unassigned at gcc dot gnu.org Reporter: m101010a at gmail dot com Target Milestone: --- When compiling with "-O1 -mlzcnt", __builtin_clz applied to an unsigned short generates the lzcntw instruction instead of lzcntl. Given the following source code:

[Bug c++/56671] New: Gcc uses large amounts of memory and processor power with large C++11 bitsets

2013-03-20 Thread m101010a at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56671 Bug #: 56671 Summary: Gcc uses large amounts of memory and processor power with large C++11 bitsets Classification: Unclassified Product: gcc Version: 4.7.2

[Bug c++/55319] Using -fwhole-program inhibits optimization

2012-11-18 Thread m101010a at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55319 --- Comment #2 from m101010a at gmail dot com 2012-11-18 22:13:23 UTC --- Actually, it does depend on IO; the optimizations aren't performed in either case if I declare but don't define putchar, and if do something simple like as

[Bug c++/55319] New: Using -fwhole-program inhibits optimization

2012-11-13 Thread m101010a at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55319 Bug #: 55319 Summary: Using -fwhole-program inhibits optimization Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal

[Bug c++/54431] [C++11] g++ crashes when compiling the following file

2012-09-01 Thread m101010a at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54431 --- Comment #1 from m101010a at gmail dot com 2012-09-01 22:04:04 UTC --- Gcc also doesn't crash if the lambda line is changed to [this]{this->bar();}(); Although the resulting program does.

[Bug c++/54431] New: [C++11] g++ crashes when compiling the following file

2012-08-30 Thread m101010a at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54431 Bug #: 54431 Summary: [C++11] g++ crashes when compiling the following file Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: normal

[Bug c++/54080] New: g++ crashes when compiling the following file

2012-07-24 Thread m101010a at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54080 Bug #: 54080 Summary: g++ crashes when compiling the following file Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: normal Prio