[M3devel] Warning on apparent compiler bug

Rodney M. Bates rodney_bates at lcwb.coop
Fri Feb 14 03:08:30 CET 2014



On 02/13/2014 04:55 PM, Henning Thielemann wrote:
> Am 13.02.2014 23:45, schrieb Rodney M. Bates:
>> I added a procedure signature to an interface and forgot to add the body
>> to the
>> (only) corresponding module that exported the interface.  The compiler
>> gave me
>> no error message, no matter how hard I tried.  I eventually did a
>> -realclean,
>> touched both the interface and module, and recompiled, to no avail.
>> This was
>> in a library package.
>
> Since several implementations can export something to the same interface, the compiler cannot warn about a missing procedure body in a specific implementation module.
>
> But I guess you get a linker error later. (Maybe too late, to understand the cause.)

Yes, when the package is linked, which is always done as part of a single cm3 command.
And in many cases, you do get a message for this error, something like

"procedure If.Mumble is not implemented."

I have gotten this in the past, for this very error.  But not this time.
So it's an intermittent bug.

>
>




More information about the M3devel mailing list