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

Bad parsing of embedded macros expected token ; got {

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • Qt Creator 2.6.0, Qt Creator 2.6.1
    • C/C++/Obj-C++ Support
    • None
    • ubuntu 10.4

    Description

      The code below displays the "int i;" line with a red underlining, due to parsing error "Bad parsing of embedded macros expected token ; got {"

      #define M2(cond, ...) \
        if (true)
      
      
      #define M1(cond, ...)\
        M2(cond) {}
      
          void f()
          {
            M1(true, "njk") ;
            int i;
          }
      

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            dpinol Daniel Pinyol
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes