[Bug c++/91292] New: Mangler incorrectly handles negative numbers in expressions

2019-07-29 Thread jorg.brown at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jorg.brown at gmail dot com Target Milestone: --- Consider these four templated functions, each using an enable_if: template typename std::enable_if<(int)sizeof(T) >= -(1), int>::t

[Bug c++/91693] New: Comparing addresses of templated inline vars gets bogus "not a constant expression" error

2019-09-06 Thread jorg.brown at gmail dot com
NCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jorg.brown at gmail dot com Target Milestone: --- This code works just fine: inline int inline1 = 0; inline int inline2 = 0; static_assert(&inlin

[Bug tree-optimization/43565] Missed address comparison folding of DECL_COMMONs

2019-09-06 Thread jorg.brown at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43565 Jorg Brown changed: What|Removed |Added CC||jorg.brown at gmail dot com --- Comment

[Bug c++/91693] Comparing addresses of templated inline vars gets bogus "not a constant expression" error

2019-09-06 Thread jorg.brown at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91693 --- Comment #1 from Jorg Brown --- Related missed-optimization bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43565

[Bug c++/101430] New: Passing a lambda as a template argument causes internal compiler error

2021-07-12 Thread jorg.brown at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jorg.brown at gmail dot com Target Milestone: --- This code causes gcc 11.1.0 to ICE: extern "C" { int printf(const char *, ...); } vo

[Bug c++/114913] New: "verify_gimple failed" due to addition of two constexpr strings

2024-05-01 Thread jorg.brown at gmail dot com via Gcc-bugs
ty: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jorg.brown at gmail dot com Target Milestone: --- Source: #include constexpr std::string Hello = "Hello, ", World = "World."; constexpr std::string He

[Bug middle-end/114913] "verify_gimple failed" due to addition of two constexpr strings

2024-05-01 Thread jorg.brown at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114913 --- Comment #4 from Jorg Brown --- Oddly, if I move the reference to HelloWorld into a separate routine, it works (you can comment out a() and ba() returns what it should, on gcc 15.0) struct strt { const char *ptr = &data; char data = '\0'