Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000836OCamlCamlIDLpublic2002-01-27 17:522002-04-19 16:41
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000836: camlidl: unknown attributes are not ignored correctly
DescriptionThis happens if "import" statement present in the source:

1.
 
[---noimport.idl---]
[
    object,
    helpstring("Something"),
]
interface IInterface : IUnknown
{
}
[---end of noimport.idl---]

C:\Work\Ocaml\camlidl\test>camlidl noimport.idl
noimport.idl
File noimport.idl, line 7, column 0: Warning: attribute `helpstring'
unknown, malformed or not applicable here, ignored.

That's OK (although the line number is slightly confusing). But

2.

[---import1.idl---]
/* empty */
[---end of import1.idl---]

[---import.idl---]
import "import1.idl";

[
    object,
    helpstring("Something")
]
interface IInterface : IUnknown
{
}
[---end of import.idl---]

gives

C:\Work\Ocaml\camlidl\test>camlidl import.idl
import.idl
import1.idl
Fatal error: exception
Sys_error("C:\DOCUME~1\bely\LOCALS~1\Temp\camlidl17.idl: No such file or
directory")

Probably, camlidl loses the context after "import", and any warning/syntax
error will lead to the same result.

It would also be nice (but of course, not necessary) if camlidl allowed
optional semicolon after an interface definition:

[ object ] interface IInterface : IUnknown {}; // currently syntax error

and generated warning (not syntax error), if an unknown attrubute for
function is encountered:

[ object ] interface IInterface : IUnknown
{
    [helpstring("something for MIDL")] HRESULT f(); // currently systax error
}

Hope to hear from you soon,
Dmitry

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000083)
administrator (administrator)
2002-04-19 16:41

Fixed 2002-04-19 by XL

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker