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.
|