public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50707] New: [C++0x] Non-static const data member initializer breaks default constructor
@ 2011-10-12 20:05 roman at binarylife dot net
  2011-10-13 21:41 ` [Bug c++/50707] " jason at gcc dot gnu.org
  2011-10-14 19:24 ` jason at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: roman at binarylife dot net @ 2011-10-12 20:05 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50707
           Summary: [C++0x] Non-static const data member initializer
                    breaks default constructor
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: roman@binarylife.net


$ cat test.cpp 
int g;

struct S {
   int const v=g;
};

S s;

$ g++ -std=c++0x -c ./test.cpp 
./test.cpp:7:3: error: use of deleted function ‘S::S()’
./test.cpp:3:8: error: ‘S::S()’ is implicitly deleted because the default
definition would be ill-formed:
./test.cpp:3:8: error: uninitialized non-static const member ‘const int S::v’


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

* [Bug c++/50707] [C++0x] Non-static const data member initializer breaks default constructor
  2011-10-12 20:05 [Bug c++/50707] New: [C++0x] Non-static const data member initializer breaks default constructor roman at binarylife dot net
@ 2011-10-13 21:41 ` jason at gcc dot gnu.org
  2011-10-14 19:24 ` jason at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jason at gcc dot gnu.org @ 2011-10-13 21:41 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011-10-13
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


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

* [Bug c++/50707] [C++0x] Non-static const data member initializer breaks default constructor
  2011-10-12 20:05 [Bug c++/50707] New: [C++0x] Non-static const data member initializer breaks default constructor roman at binarylife dot net
  2011-10-13 21:41 ` [Bug c++/50707] " jason at gcc dot gnu.org
@ 2011-10-14 19:24 ` jason at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jason at gcc dot gnu.org @ 2011-10-14 19:24 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-10-14 19:23:33 UTC ---
Fixed (accidentally checked in fix marked as for PR 50507).


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

end of thread, other threads:[~2011-10-14 19:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-12 20:05 [Bug c++/50707] New: [C++0x] Non-static const data member initializer breaks default constructor roman at binarylife dot net
2011-10-13 21:41 ` [Bug c++/50707] " jason at gcc dot gnu.org
2011-10-14 19:24 ` 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).