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

Clang: Unterminated conditional directive when there's an opening brace inside unsatisfied #if

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 4.4.0, Qt Creator 4.8.0-beta2
    • C/C++/Obj-C++ Support

    Description

      #ifdef MYCPLUSPLUS // unterminated conditional directive
      extern "C" {
      #endif // #endif without #if
      
      #ifdef MYCPLUSPLUS
      }
      #endif
      
      int main()
      {
          return 0;
      } // expected '}' to match this '{' (line 2)

      Attachments

        1. circular.zip
          0.8 kB
          Orgad Shaneh
        2. Screenshot_20180531_162211.png
          41 kB
          nib952051
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            orgads Orgad Shaneh
            Votes:
            11 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes