My mistake. Cu constructor (int) sau operator de conversie la int, a:0 se
poate evalua.

Mihai

> Marius Ologesa <[EMAIL PROTECTED]> wrote the immortal words:

> 2. sursa:
> #include <stdio.h>
> class A
> {
>   public:
>     A(int = 0)
>       {}
>     operator int()
>       {}
>     int operator()(int, int)
>       {}
> };
> int main()
> {
>     int x, y;
>     A a;
>     if ((a ? a : (A)0) (x,y));
> }
>
> [mologesa@mologesa]/~$ g++ test.cc
> test.cc: In function `int main()':
> test.cc:20: Internal compiler error in `instantiate_virtual_regs_1', at
> function.c:3863
> Please submit a full bug report.
> See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
> instructions.
>
> --
>                       The Marius
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
> unsubscribe from this list.
>

---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui