This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: Interface dispatch table optimization


Bryce McKinlay <mckinlay@redhat.com> writes:

[...]

| >> -static _Jv_IDispatchTable null_idt = { {SHRT_MAX, 0, NULL} };
| >> +static _Jv_IDispatchTable null_idt = { {SHRT_MAX, 0, {}} };
| >>
| >
| > I cannot remember if {} is valid C++, I think it is but I am not sure.
| > I know it is invalid C.
| >
| 
| Is there an alternative?

It is valid C++.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]