public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55382] New: Constant class member as alignment specifier
@ 2012-11-18 18:20 aanisimov at inbox dot ru
  2012-11-18 22:13 ` [Bug c++/55382] " glisse at gcc dot gnu.org
  2015-03-25 19:42 ` paolo.carlini at oracle dot com
  0 siblings, 2 replies; 3+ messages in thread
From: aanisimov at inbox dot ru @ 2012-11-18 18:20 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55382
           Summary: Constant class member as alignment specifier
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: aanisimov@inbox.ru


Consider the following sample code:

struct A
{
        static const unsigned alignment = 32;

        char data[1234] __attribute__((aligned(alignment /*+ 0*/)));
} __attribute__((aligned(A::alignment /* + 0 */)));

g++ (r193606) complains that "requested alignment is not an integer constant",
but when the "+ 0" part is uncommented, the requested alignment magically
becomes a constant.


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

* [Bug c++/55382] Constant class member as alignment specifier
  2012-11-18 18:20 [Bug c++/55382] New: Constant class member as alignment specifier aanisimov at inbox dot ru
@ 2012-11-18 22:13 ` glisse at gcc dot gnu.org
  2015-03-25 19:42 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: glisse at gcc dot gnu.org @ 2012-11-18 22:13 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> 2012-11-18 22:13:37 UTC ---
Seems related to PR 53017.


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

* [Bug c++/55382] Constant class member as alignment specifier
  2012-11-18 18:20 [Bug c++/55382] New: Constant class member as alignment specifier aanisimov at inbox dot ru
  2012-11-18 22:13 ` [Bug c++/55382] " glisse at gcc dot gnu.org
@ 2015-03-25 19:42 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-25 19:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Also fixed.

*** This bug has been marked as a duplicate of bug 53017 ***


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

end of thread, other threads:[~2015-03-25 19:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-18 18:20 [Bug c++/55382] New: Constant class member as alignment specifier aanisimov at inbox dot ru
2012-11-18 22:13 ` [Bug c++/55382] " glisse at gcc dot gnu.org
2015-03-25 19:42 ` paolo.carlini at oracle 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).