This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65322] Narrowing conversion
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Mar 2015 10:54:18 +0000
- Subject: [Bug c++/65322] Narrowing conversion
- Auto-submitted: auto-generated
- References: <bug-65322-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65322
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
N.B. to make the code compile just don't use braces for the initialization:
: m_counter( b ? 1u : 0u )