public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65132] New: diagnostics: missing: bitfield member cannot have an in-class initializer
@ 2015-02-20  9:14 jan.kratochvil at redhat dot com
  2015-02-20 12:43 ` [Bug c++/65132] " manu at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jan.kratochvil at redhat dot com @ 2015-02-20  9:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65132
           Summary: diagnostics: missing: bitfield member cannot have an
                    in-class initializer
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jan.kratochvil at redhat dot com

class C { bool x:1=false; };

g++ (GCC) 5.0.0 20150219 (experimental):
field.C:1:20: error: an assignment cannot appear in a constant-expression

clang-3.5.0-6.fc21.x86_64:
field.C:1:19: error: bitfield member cannot have an in-class initializer

I had no idea what GCC errors on until I asked clang.


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

end of thread, other threads:[~2021-07-23 21:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-20  9:14 [Bug c++/65132] New: diagnostics: missing: bitfield member cannot have an in-class initializer jan.kratochvil at redhat dot com
2015-02-20 12:43 ` [Bug c++/65132] " manu at gcc dot gnu.org
2015-02-20 13:18 ` manu at gcc dot gnu.org
2021-07-23 21:24 ` pinskia 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).