[Bug c/58267] New: Alignment specifier allowed within array declarator;

2013-08-28 Thread rohan at rohanlean dot de
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: rohan at rohanlean dot de “char s[_Alignas (int) 7];” is accepted without warnings in strict C11 mode. I cannot construct that declaration using the grammar in appendix A.2 of the standard.

[Bug c++/88529] New: G++ clears the return register on x86_64 when returning an empty class

2018-12-17 Thread rohan at rohanlean dot de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rohan at rohanlean dot de Target Milestone: --- Target: x86_64 The following code causes G++ to emit an "xorl %eax, %eax" on x86_64. I believe the Itanium AB

[Bug c/55546] New: Static functions that are fully inlined can end up in the object file

2012-11-30 Thread rohan at rohanlean dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55546 Bug #: 55546 Summary: Static functions that are fully inlined can end up in the object file Classification: Unclassified Product: gcc Version: 4.7.2 Status:

[Bug c++/62240] New: A using-declaration within a class can publish a public base of a private base.

2014-08-23 Thread rohan at rohanlean dot de
: minor Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rohan at rohanlean dot de Created attachment 33384 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33384&action=edit small testcase Suppose that three clas

[Bug c++/121177] New: Possibly missed allocation elision

2025-07-19 Thread rohan at rohanlean dot de via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: rohan at rohanlean dot de Target Milestone: --- I am unsure if the optimisations I desire are allowed by the standard, so in that sense this report is half a question. I believe it comes down mostly to the interpretation of [expr.new

[Bug tree-optimization/121177] Possibly missed allocation elision

2025-07-19 Thread rohan at rohanlean dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121177 --- Comment #2 from Rohan Lean --- I have crossposted to the LLVM bugtracker at https://github.com/llvm/llvm-project/issues/149661, because clang also does no elisions here.

[Bug c++/121226] New: ICE in core_vals, at cp/module.cc:6641

2025-07-23 Thread rohan at rohanlean dot de via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: rohan at rohanlean dot de Target Milestone: --- I have hit the following error with `-g -std=c++23 -flto=auto -fno-fat-lto-objects`, but not with `-O3 -DNDEBUG -std=c++23 -flto=auto -fno-fat-lto-objects`: ``` internal compiler

[Bug c++/121226] ICE in core_vals, at cp/module.cc:6641

2025-07-23 Thread rohan at rohanlean dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121226 --- Comment #2 from Rohan Lean --- Created attachment 61952 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61952&action=edit Preprocessed source

[Bug libstdc++/121237] New: Wrong return value of `condition_variable_any::wait_until`

2025-07-24 Thread rohan at rohanlean dot de via Gcc-bugs
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rohan at rohanlean dot de Target Milestone: --- The `stop_token` overload of `condition_variable_any` can sometimes return a wrong result. The implementation in

[Bug libstdc++/121237] Wrong return value of `condition_variable_any::wait_until`

2025-07-24 Thread rohan at rohanlean dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121237 --- Comment #1 from Rohan Lean --- I copy pasted the wrong listing from the standard by mistake. The correct one is: ``` while (!stoken.stop_requested()) { if (pred()) return true; if (wait_until(lock, abs_time) == cv_status::timeo

[Bug libstdc++/121237] Wrong return value of `condition_variable_any::wait_until`

2025-07-24 Thread rohan at rohanlean dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121237 --- Comment #2 from Rohan Lean --- (The libstdc++ implementation corresponding to that overload also appears to have the problem, however.)

[Bug c++/121238] New: `-fmodules` causes invalid runtime exceptions with `std::format`

2025-07-24 Thread rohan at rohanlean dot de via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rohan at rohanlean dot de Target Milestone: --- The following two files, compiled with `-std=c++23 -fmodules` give a runtime exception, `format error: invalid width or precision in