[Bug libstdc++/58196] New: std::align is missing

2013-08-19 Thread augustorighetto at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58196

Bug ID: 58196
   Summary: std::align is missing
   Product: gcc
   Version: 4.8.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libstdc++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: augustorighetto at gmail dot com

g++ 4.8.1 can't find std::align in .

$ g++ --version
g++ (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

#include 
#include 
#include 

int main(int argc, char* argv[]) {
float* f = nullptr;
size_t space = 10;
if (std::align(2, sizeof(float), f, space)) {
std::cout << "yes" << std::endl;
} else {
std::cout << "no" << std::endl;
}
return EXIT_SUCCESS;
}

$ g++ -o foo -std=c++11 Main.cpp
Main.cpp: In function ‘int main(int, char**)’:
Main.cpp:8:9: error: ‘align’ is not a member of ‘std’
 if (std::align(2, sizeof(float), f, space)) {
 ^

[Bug libstdc++/58196] std::align is missing

2013-08-19 Thread augustorighetto at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58196

--- Comment #2 from Augusto Righetto  ---
Hi Paolo,

I apologize for filling a bug for an unimplemented feature.
However, if you take a look at
http://gcc.gnu.org/gcc-4.8/cxx0x_status.html, you'll see that "Alignment
support" is marked as available on GCC 4.8.
Having two different tables to track down features is confusing.

Thanks,

Augusto