This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60258] Member initialization for atomic fail.
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Feb 2014 07:58:10 +0000
- Subject: [Bug c++/60258] Member initialization for atomic fail.
- Auto-submitted: auto-generated
- References: <bug-60258-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60258
--- Comment #5 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> ---
(In reply to Daniel KrÃgler from comment #4)
> Reduced example:
More reduced by eliminating library dependencies:
//------------------
struct atomic_bool
{
atomic_bool(const atomic_bool&) = delete;
constexpr atomic_bool(bool) noexcept { }
};
#define USE_TEMPLATE
#ifdef USE_TEMPLATE
template <class>
#endif
struct base
{
atomic_bool magic{false};
};
int main()
{
#ifdef USE_TEMPLATE
base<void> b;
#else
base b;
#endif
}
//------------------