https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78434

--- Comment #1 from Marc Mutz <marc.mutz at kdab dot com> ---
Created attachment 40089
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40089&action=edit
Testcase, compile with g++ -Wall -o 78434{,.cpp}

Actual Output:

  78434.cpp:11:30: warning: ‘new’ of type ‘Align128’ with extended alignment
128 [-Waligned-new=]
     new (buf) Align128{1.0, 2.0};
                                ^
  78434.cpp:11:30: note: uses ‘void* operator new(std::size_t, void*)’, which
does not have an alignment parameter
  78434.cpp:11:30: note: use ‘-faligned-new’ to enable C++17 over-aligned new
support

Expected Output: none. placement new has no overload taking std::align_val_t.

Reply via email to