Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-846

Types with multiple keywords result in broken code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.12.0
    • 5.11.2
    • Shiboken
    • None
    • Linux/X11
    • 93b54f123771c5b7da9880e9a2f372562893707f (pyside/pyside-setup/5.12)

    Description

      Trying to use shiboken2 for my project I get the following error when compiling the resulted source file:

       

      error: expected primary-expression before ‘unsigned’ 
      

      The code looks as follows:

      if (PyErr_Occurred())
           return unsigned int(0);

       

      Looks like Shiboken forgets to add some braces around unsigned int.

       

      $ llvm-config --version

      6.0.0

       

      Attachments

        1. pyside846_repro.diff
          1 kB
          Friedemann Kleint

        Activity

          People

            kleint Friedemann Kleint
            strahlex Alexander Rössler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: