[Bug c++/112498] std::is_convertible::value returns false

2023-11-12 Thread josopait at goopax dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112498 --- Comment #2 from Ingo Josopait --- Yes, you are right. It is confusing, though. Maybe the warning message should mention that it is actually invalid code. It looked more like a suggestion to me.

[Bug libstdc++/112498] New: std::is_convertible::value returns false

2023-11-12 Thread josopait at goopax dot com via Gcc-bugs
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: josopait at goopax dot com Target Milestone: --- If I am not mistaken, this should succeed: #include int main() { static_assert(std::is_convertible::value); // ok static_assert(std

[Bug libbacktrace/112322] New: std::stacktrace fails

2023-10-31 Thread josopait at goopax dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: josopait at goopax dot com CC: ian at gcc dot gnu.org Target Milestone: --- I installed gcc on gentoo linux: EXTRA_ECONF="--enable-libstdcxx-backtrace=yes" emerge gcc and compiled the following program:

[Bug c++/111436] New: Wrong code when bit-casting struct through pointer

2023-09-16 Thread josopait at goopax dot com via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: josopait at goopax dot com Target Milestone: --- Does gcc produce wrong code here? The program below is part of a bitwise conversion mechanism, similar to std::bit_cast, but for more general types. The output should

[Bug c++/65786] Wrong code when using decltype to specify the return type

2015-04-16 Thread josopait at goopax dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65786 --- Comment #3 from Ingo Josopait --- Yes, you are right. Thanks.

[Bug c++/65786] New: Wrong code when using decltype to specify the return type

2015-04-16 Thread josopait at goopax dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: josopait at goopax dot com In the program below, the assignment of the return value is messed up. While the C++-14 style of fully automatic type deduction works fine, the mymax11 function call