Bonjour,
Le 26 juillet 2001, Gabriel Dos Reis a écrit :
> This is not a bug in the compiler.
Yes ! I apologize for the inconvenient.
--
Boujou t'chu tè.
Franck Branjonneau <[EMAIL PROTECTED]>
[EMAIL PROTECTED], [EMAIL PROTECTED] writes:
| template< typename T, int role, bool ndebug >
| struct init {
| static T * do_it() {
| T* tmp(new T);
| std::cout << "/tmp/ point to: " << *tmp << "\n";
| return tmp;
| }
| };
| /tmp/ point to: 0
| /tmp/ point to: 107
>Submitter-Id: net-debian
>Originator:Franck Branjonneau
>Organization:
>Confidential: no
>Synopsis: No initialization of an int allocated with new int.
>Severity: serious
>Priority: medium
>Category: c++
>Class: wrong-code
>Release: 3.0 (Debian) (Deb
3 matches
Mail list logo