Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-8662

QtCreator preprocessor fails on a simple function involving names starting with numbers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 2.6.1
    • C/C++/Obj-C++ Support
    • None
    • Archlinux

    Description

      This code reproduces the bug on QtCreator.

      #define FOO_3D_FLAG 1
      #define FOO_D_FLAG 1
      #define TEST(FOO_FEATURE) (defined FOO_##FOO_FEATURE && FOO_##FOO_FEATURE)

      #if TEST(3D_FLAG)
      // disabled by this bug
      #endif
      #if TEST(D_FLAG)
      // works nicely
      #endif

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            hugopl Hugo Parente Lima
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes