<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - flang preprocessor fails to parse simple macro alias"
   href="https://bugs.llvm.org/show_bug.cgi?id=47818">47818</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>flang preprocessor fails to parse simple macro alias
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>flang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tm@dev-zero.ch
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>David.Truby@arm.com, jperier@nvidia.com, kirankumartp@gmail.com, llvm-bugs@lists.llvm.org, sscalpone@nvidia.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Given the following code:


#define TO_VERSION2(MAJOR, MINOR) ((MAJOR) * 10000 + (MINOR) * 100)
#define TO_VERSION TO_VERSION2

#if TO_VERSION2(1, 11) <= TO_VERSION2(0, 0)
#endif

#if TO_VERSION(1, 11) <= TO_VERSION(0, 0)
#endif


I get with the latest trunk (llvmorg-12-init-8404-gacd0dd3a62d):

$ flang -E prog.F 
/data/tiziano/flang/install/bin/f18: could not scan prog.F
prog.F:8:15: error: excess characters after expression
  #if TO_VERSION(1, 11) <= TO_VERSION(0, 0)
                ^^^</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>