<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 - CASE conflicts with previous cases"
   href="https://bugs.llvm.org/show_bug.cgi?id=47309">47309</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>CASE conflicts with previous cases
          </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>riccardo.bertossa@gmail.com
          </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>Created <span class=""><a href="attachment.cgi?id=23894" name="attach_23894" title="source code that triggers the problem">attachment 23894</a> <a href="attachment.cgi?id=23894&action=edit" title="source code that triggers the problem">[details]</a></span>
source code that triggers the problem

this gives an error

$cat select_case.f90
program pippo                           
implicit none                           

integer :: test                         

read (*,*) test                         
select case(test)                       
    case(0:)                            
      write (*,*) 'Not negative number' 
    case(:-1)                           
      write(*,*) 'Negative number'      
end select                              


end program                             

$flang select_case.f90
select_case.f90:10:5: error: CASE (:-1_16) conflicts with previous cases 
      case(:-1)                                                          
      ^^^^^^^^^                                                          
select_case.f90:8:5: Conflicting CASE (0_16:)                            
      case(0:)                                                           
      ^^^^^^^^                                                           
/scratch/llvm/bin/f18: semantic errors in select_case.f90</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>