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

        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