Nested types should be allowed in aliases

Bug #689821 reported by Michael Terry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GObject Introspection
Invalid
Medium
gobject-introspection (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gobject-introspection

A typedef like the following:

typedef GSList TestSList;

Generates the following in gir:

<alias name="SList" c:type="TestSList">
  <type name="GLib.SList" c:type="GSList">
    <type name="gpointer" c:type="gpointer"/>
  </type>
</alias>

Which g-ir-compiler does not like:

Test-0.0.gir:16:50: error: The element <type> is invalid here
error parsing file Test-0.0.gir: The element <type> is invalid here

See upstream bug for more details including a testcase. This is causing a build failure in at least libgda4.

Changed in gobject-introspection:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
Martin Pitt (pitti) wrote :

This was fixed a while ago.

Changed in gobject-introspection (Ubuntu):
status: New → Fix Released
Changed in gobject-introspection:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.