Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-57776

duplicate namespaces from moc 1 out of a few hundred times

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.x
    • Build tools: moc
    • None
    • ubuntu 14.04

    Description

      We are randomly seeing compilation failures that are the result of seemingly invalid moc generation.

      Have not been able to find an easy way to repo. But when the problem a few dozen of the follow changes are seen in the output moc

      bad file

      -const QMetaObject &my_namespace::my_namespace::my_plugin::getStaticMetaObject()

      { return staticMetaObject; }

      good file

      +const QMetaObject &my_namespace::my_plugin::getStaticMetaObject() { return staticMetaObject; }

      Eventually resulting in c++ compilation error
      error: 'my_namespace::my_namespace' has not been declared

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ogoffart Olivier Goffart (Woboq GmbH)
            madmik3 Michael Knight
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes