public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66216] New: Defaulted Operators and contructors not working with aligned attribute
@ 2015-05-20 12:33 npl at chello dot at
  2015-05-20 13:01 ` [Bug c++/66216] [6 Regression] Defaulted Operators and constructors " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: npl at chello dot at @ 2015-05-20 12:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66216
           Summary: Defaulted Operators and contructors not working with
                    aligned attribute
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: npl at chello dot at
  Target Milestone: ---

The code below will not compile, faulting with defaulted declaration 'xx' does
not match expected signature.
This behaviour is in any gcc version from 4.7 - 5

// g++ -std=c++11 -c  testalign.cpp

class CMymy
{
        unsigned char _a;
        unsigned char _b;
public:
        constexpr CMymy() : _a(), _b() {}

        constexpr CMymy(const CMymy &) = default;
        CMymy &operator=(const CMymy &) = default;

} __attribute__((aligned(2)));


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

end of thread, other threads:[~2015-06-26 21:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-20 12:33 [Bug c++/66216] New: Defaulted Operators and contructors not working with aligned attribute npl at chello dot at
2015-05-20 13:01 ` [Bug c++/66216] [6 Regression] Defaulted Operators and constructors " redi at gcc dot gnu.org
2015-05-20 19:53 ` jamrial at gmail dot com
2015-06-26 21:31 ` jason at gcc dot gnu.org
2015-06-26 21:42 ` jason at gcc dot gnu.org
2015-06-26 21:42 ` jason at gcc dot gnu.org

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).