This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34811] Classes without attributes declared as const need initializer.



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-01-16 13:32 -------
EDG says:

t.C(27): error: const variable "sM" requires an initializer -- class
"signalManager" has no explicitly declared default constructor
  } const sM ;
             ^

compilation aborted for t.C (code 2)

which is correct.  Try

  } const sM = signalManager();


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]