New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 715884 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Order dependency when using nested enums from another interface

Project Member Reported by ortuno@chromium.org, Apr 27 2017

Issue description

I have the following code in a Foo.mojom file:

interface Foo {
  DoFoo(Baz.Bar bar);
}

interface Baz {
  enum Bar { ... };
}

That fails to compile because the generated function in foo.mojom.h has an incomplete type:

error: incomplete type 'Baz' named in nested name specifier
  virtual void DoFoo(Baz::Bar bar) = 0;

note: forward declaration of 'Baz'
class Baz;

Switching the order of the mojom file to declare Baz before Foo fixes the issue.
 

Comment 1 by ortuno@chromium.org, Apr 27 2017

Status: WontFix (was: Untriaged)

Sign in to add a comment