[Bug c++/102514] The allocation function shall not be called when existing an erroneous expression in noptr-new-declarator

2023-03-20 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102514 Jonathan Wakely changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/102514] The allocation function shall not be called when existing an erroneous expression in noptr-new-declarator

2021-10-24 Thread xmh970252187 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102514 --- Comment #2 from jim x --- It seems that they all do not obey [expr.new] p9, which says that If the expression in a noptr-new-declarator is present, it is implicitly converted to std​::​size_­t. The expression is erroneous if: - the

[Bug c++/102514] The allocation function shall not be called when existing an erroneous expression in noptr-new-declarator

2021-10-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102514 --- Comment #1 from Andrew Pinski --- Hmm, clang, GCC, ICC and MSVC all have the same behavior for the testcase.