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

2008-01-16 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-01-16 15:05 --- (In reply to comment #2) > I know about that. The class don't need a contructor, it does not have > anything > that needs to be assigned upon creation. Why should the compiler link in code > that does not do anythin

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

2008-01-16 Thread olof dot tangrot at telia dot com
--- Comment #2 from olof dot tangrot at telia dot com 2008-01-16 14:16 --- I know about that. The class don't need a contructor, it does not have anything that needs to be assigned upon creation. Why should the compiler link in code that does not do anything? I eats memory. Surely that

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

2008-01-16 Thread rguenth at gcc dot gnu dot org
--- 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) whic