[Bug c++/106269] the "operator delete" selection does not follow c++ spec

2022-09-04 Thread chumarshal at foxmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106269 --- Comment #2 from marshal --- (In reply to marshal from comment #0) > #include > #include > > void operator delete[]( void* ptr ) noexcept { > std::cout << "delete with 1 parameters==" << std::endl; > ::o

[Bug c/106406] _Static_assert declaration can not be first of for-triplet

2022-09-04 Thread chumarshal at foxmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106406 --- Comment #4 from marshal --- (In reply to marshal from comment #0) > int main() > { > int i = 4; > for (_Static_assert (3, "This is a three"); i < 7; i++) { > i += 2; > } > } > > > Gcc can build successfully, but it doe

[Bug c/106406] New: _Static_assert declaration can not be first of for-triplet

2022-07-22 Thread chumarshal at foxmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106406 Bug ID: 106406 Summary: _Static_assert declaration can not be first of for-triplet Product: gcc Version: rust/master Status: UNCONFIRMED Severity: normal

[Bug c++/106269] New: the "operator delete" selection does not follow c++ spec

2022-07-12 Thread chumarshal at foxmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106269 Bug ID: 106269 Summary: the "operator delete" selection does not follow c++ spec Product: gcc Version: rust/master Status: UNCONFIRMED Severity: normal

[Bug c++/105077] The std::bad_array_new_length is not thrown for some new array scenarios.

2022-03-29 Thread chumarshal at foxmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105077 --- Comment #5 from marshal --- (In reply to Jonathan Wakely from comment #4) > (In reply to marshal from comment #3) > > But why "new int[negative];" throws std::bad_array_new_length as following > > case? > > Because that case requires size_t

[Bug c++/105077] The std::bad_array_new_length is not thrown for some new array scenarios.

2022-03-28 Thread chumarshal at foxmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105077 --- Comment #3 from marshal --- (In reply to Jonathan Wakely from comment #2) > I've added the first example there. The other two examples are exactly the > same scenario. > > *** This bug has been marked as a duplicate of bug 85795 *** But w

[Bug c++/105077] New: The std::bad_array_new_length is not thrown for some new array scenarios.

2022-03-28 Thread chumarshal at foxmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105077 Bug ID: 105077 Summary: The std::bad_array_new_length is not thrown for some new array scenarios. Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: no