<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Clang win32 assert "The next DeclContext should be lexically contained in the current one.""
   href="https://llvm.org/bugs/show_bug.cgi?id=23327">23327</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang win32  assert  "The next DeclContext should be lexically contained in the current one."
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>partow@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Attached code example builds error/warning free with clang (3.2+) built on
linux. 

However when attempting to build the same code, using the win32 clang build the
following error is observed:


1>------ Rebuild All started: Project: exprtk_test, Configuration: Release
Win32 ------
1>clang-cl.exe : warning : argument unused during compilation: '/GL'
1>clang-cl.exe : warning : argument unused during compilation: '/Gm-'
1>clang-cl.exe : warning : argument unused during compilation: '/GS'
1>  Assertion failed: getContainingDC(DC) == CurContext && "The next
DeclContext should be lexically contained in the current one.", file
D:\src\llvm_snapshot_235383\llvm\tools\clang\lib\Sema\SemaDecl.cpp, line 1073
1>  0x00C1BCE7 (0x00000016 0x0199BC72 0x00138888 0x056EE364)
1>  0x0199CF21 (0x02268D40 0x02268B60 0x00000431 0x0568BE20)
1>  0x01419017 (0x04FC06E0 0x056EE364 0x00138888 0x0636F9E0)
1>  0x012A82DD (0x00000000 0x00000000 0x0010F0D4 0x00138C28)
1>  0x00BA0274 (0x0636F9E0 0x0165B0CF 0x0014EFA8 0x0636F9E0)
1>  0x012A796D (0x0014EFA8 0x0636F9E0 0x07693960 0x004F90BE)
1>  0x0165B0CF (0x00108B10 0x02F2DDFC 0x02F2DDFC 0x00138888)
1>  0x014F347D (0x00000001 0x00139938 0x073EC4A0 0x00000000)
1>  0x013B0875 (0x073EC4C4 0x04939328 0x013B20B3 0x073EC520)
1>  0x0180FC94 (0x073EC520 0x013FDF8C 0x02F2DE8C 0x073EC4A0)
1>  0x013B20B3 (0x02F2DE8C 0x073EC4A0 0x00000000 0x00138888)
1>  0x013FDF8C (0x00000000 0x073EC4A0 0x07694048 0x07695358)
1>  0x013FDFB4 (0x00000600 0x000EA978 0x0759C088 0x00000008)
1>  0x013FA961 (0x004F90BE 0x07693960 0x00000001 0x00F2C500)
1>  0x0165D053 (0x00138888 0x07693960 0x00000000 0x02290480)
1>  0x00F1FF89 (0x00000001 0x073EC4A0 0x004FA804 0x00138888)
1>  0x0165B46A (0x073EC4A0 0x004FA804 0x00138888 0x073EC4A0)
1>clang-cl.exe : error : clang frontend command failed due to signal (use -v to
see invocation)
1>  clang version 3.7.0 (trunk)
1>  Target: i686-pc-windows-msvc
1>  Thread model: posix
1>  clang-cl.exe: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
1>  clang-cl.exe: note: diagnostic msg:
1>  ********************
1>
1>  PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
1>  Preprocessed source(s) and associated run script(s) are located at:
1>  clang-cl.exe: note: diagnostic msg:
C:\Users\user\AppData\Local\Temp\exprtk_test-53da00.cpp
1>  clang-cl.exe: note: diagnostic msg:
C:\Users\user\AppData\Local\Temp\exprtk_test-53da00.sh
1>  clang-cl.exe: note: diagnostic msg:
1>
1>  ********************
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========</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>