Afficher un message
Vieux 18/10/2007, 15h17   #2
Barry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Is a bug with Comeau or I miss something as Comeau says?

<code>
struct A {};

int main()
{
const A ca;
}
</code>

<output>
"ComeauTest.c", line 5: error: const variable "ca" requires an
initializer -- class
"A" has no explicitly declared default constructor
const A ca;
</output>

I don't find any thing in standard to support Comeau.
If it's a bug with Comeau, then it's quite silly.
If I was wrong, then I was doing this wrong all the time.
  Réponse avec citation
 
Page generated in 0,04040 seconds with 9 queries