public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60258] New: Member initialization for atomic fail.
@ 2014-02-18  8:08 ja.gcc.bugzilla at aptsketch dot com
  2014-02-18  9:04 ` [Bug c++/60258] " jakub at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ja.gcc.bugzilla at aptsketch dot com @ 2014-02-18  8:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60258
           Summary: Member initialization for atomic fail.
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ja.gcc.bugzilla at aptsketch dot com

The following code is unable to compile:

template <class Ty1>
class base
{
public:
    std::atomic_size_t _magic{10};
};

class derived
    : public base<derived>
{
public:
    auto print_magic_num() const noexcept -> void
    {
    }
};

auto my_func() -> void
{
    derived a;
}

Removing the member initialization for the atomic will allow it to compile.


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

end of thread, other threads:[~2014-11-18 16:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-18  8:08 [Bug c++/60258] New: Member initialization for atomic fail ja.gcc.bugzilla at aptsketch dot com
2014-02-18  9:04 ` [Bug c++/60258] " jakub at gcc dot gnu.org
2014-02-18 11:30 ` ja.gcc.bugzilla at aptsketch dot com
2014-02-18 11:34 ` jakub at gcc dot gnu.org
2014-02-18 20:06 ` daniel.kruegler at googlemail dot com
2014-02-19  7:58 ` daniel.kruegler at googlemail dot com
2014-11-18 16:20 ` 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).