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

Moc compile error when using enums

    XMLWordPrintable

Details

    • All
    • 62d02c1d5 (dev), 1a1b1669f (6.7)

    Description

      The compilation error with the moc happens with the line:
      WXG_PROPERTY ( 3DArea, "Surface area", "", eFmtUnspecified)

      The compiler (MSCV, clang or GCC) is able to compile/preprocess the file correctly but not the moc.

      Here is the error returned :
      :/Sources/sample_projects/moc_issues/moc_error/wxg_property_native_propids.(2:1): error: Parse error at "eProp3"

      This seems related to the fact that the identifier concatenated inside the macro starts with a number. If the above line is removed, everything works correctly.

      To reproduce, please run the attached example project.

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            tuomas.vaarala Tuomas Vaarala
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes