<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/116578>116578</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[flang] compiler is not able to scan the continuation line in presence of preprocessed output
</td>
</tr>
<tr>
<th>Labels</th>
<td>
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
shivaramaarao
</td>
</tr>
</table>
<pre>
The following file is generated after preprocessing the source code.
test2.f90:
integer, allocatable :: array(:)
integer, allocatable :: source(:)
allocate (array,&
# 76 "test2.F90"
& source=source)
end program
flang compiler fails to compile above file with following error.
flang test2.f90
error: Could not scan test2.f90
test2.F90:76:38: error: Unmatched ')'
& source=source)
if the preprocessed line is moved above allocate statement, the test works fine.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8U11ymzAQPo142QkDCwbzwIMbj0_QHmAtLaBWSB5JOJPbdwQkTtNJ9CCPxX6r_X5EIejRMvfi8EMczhktcXK-D5O-k6eZyJPLrk699j8nhsEZ4160HWHQhkEHGNmyp8gKaIjs4eb55p3kEFJVnBiCW7xkkE5xLoqzKE6RQ8R86ApRnbYT-G9pG3lkL_AZyBgnKdLVMCREdQLynl4FHtNf7PYe30O2MT5j9kIGgce96bPAZvsqsIK2AYG4TXzpCoH41cRpCWzeLqrObzd2XyHYKrh5N3qa9wvXfTBkR5BuvmnDHgbSJkB0bydAV3fnzYAXHacPprD3zucfuzykXg_XgqTGs1uMAusiBEn2c9mDbnVqG1GdqqQavKN_2ZminFiBwDYRxHbn-J0A266HNRWPnLACo-0aptndU5BWfu_OhEiRZ7YxGZugaTp4cf5PgEFbziFTfaW6qqOM-7Ktyq7EuumyqSdVFwMVDZV1haqVx_Z44EOLWJRtNSjOdI8F1mVZHoumbusul8VVNiRJYaGoOJKoC55Jm9yY-5w7P2Y6hIX7smwO7TEzdGUT1reDuCqeAnI4Z75PgKfrMgZRF0aHGB4too5mfXAb4nB-mK3Dasoa3Oh2c6b0emzUdqGond3lsknDwFYyuOFfPd0Sb0uEbPGmn2K8hTXzF4GXUcdpuebSzQIvaaD95-nm3W-WUeBlJRgEXnaO9x7_BgAA__8lQklz">