public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/58196] New: std::align is missing
@ 2013-08-19 19:43 augustorighetto at gmail dot com
  2013-08-19 19:55 ` [Bug libstdc++/58196] " paolo.carlini at oracle dot com
  2013-08-20  2:04 ` augustorighetto at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: augustorighetto at gmail dot com @ 2013-08-19 19:43 UTC (permalink / raw)
  To: gcc-bugs

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 <memory>.
----
$ 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 <cstdlib>
#include <iostream>
#include <memory>

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)) {
         ^
>From gcc-bugs-return-428046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 19 19:52:11 2013
Return-Path: <gcc-bugs-return-428046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4675 invoked by alias); 19 Aug 2013 19:52:11 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 4646 invoked by uid 48); 19 Aug 2013 19:52:10 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58178] variant function name was used for user defined constructor
Date: Mon, 19 Aug 2013 19:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.8.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle dot com
X-Bugzilla-Status: WAITING
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58178-4-cpgugFxnSH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58178-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58178-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-08/txt/msg00970.txt.bz2
Content-length: 366

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX178

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
But we can't reproduce the issue on x86_64-linux. My grep gives:

0000000000400742 W _ZN4baseC1Ev
0000000000400742 W _ZN4baseC2Ev

are you on linux? Please provide information about your target, otherwise this
issue will be closed very soon.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libstdc++/58196] std::align is missing
  2013-08-19 19:43 [Bug libstdc++/58196] New: std::align is missing augustorighetto at gmail dot com
@ 2013-08-19 19:55 ` paolo.carlini at oracle dot com
  2013-08-20  2:04 ` augustorighetto at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-08-19 19:55 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58196

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Yes. But the implementation status table clearly says NO:

  http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#status.iso.2011

and generally we don't use Bugzilla to track unimplemented features.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libstdc++/58196] std::align is missing
  2013-08-19 19:43 [Bug libstdc++/58196] New: std::align is missing augustorighetto at gmail dot com
  2013-08-19 19:55 ` [Bug libstdc++/58196] " paolo.carlini at oracle dot com
@ 2013-08-20  2:04 ` augustorighetto at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: augustorighetto at gmail dot com @ 2013-08-20  2:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58196

--- Comment #2 from Augusto Righetto <augustorighetto at gmail dot com> ---
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-20  2:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-19 19:43 [Bug libstdc++/58196] New: std::align is missing augustorighetto at gmail dot com
2013-08-19 19:55 ` [Bug libstdc++/58196] " paolo.carlini at oracle dot com
2013-08-20  2:04 ` augustorighetto at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).