<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 - program can't exe with some gcc and clang commands"
   href="https://bugs.llvm.org/show_bug.cgi?id=52042">52042</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>program can't exe with some gcc and clang commands
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>C
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>rambhupal.bellam@blackfigtech.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=25317" name="attach_25317" title="program of file">attachment 25317</a> <a href="attachment.cgi?id=25317&action=edit" title="program of file">[details]</a></span>
program of file

open  terminal
If I compile it with clang with the following command:

$ clang -std=c99 -Wdeclaration-after-statement hello.c hello1
it produce no warnings
if  I execute same program with gcc with command
 $ gcc -std=c99   , $ gcc -std=c90, and $ gcc -std=c89;
with eror like this
int i = 0;
            ^
1 warning generated.


$ clang -std=c90 -Wdeclaration-after-statement hello.c hello1
shows warning
int i = 0;
            ^
1 warning generated.</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>