<html>
    <head>
      <base href="http://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 --- - Assertion `(!isLocalLinkage(LT) || hasDefaultVisibility()) && "local linkage requires default visibility"' failed."
   href="http://llvm.org/bugs/show_bug.cgi?id=19760">19760</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `(!isLocalLinkage(LT) || hasDefaultVisibility()) && "local linkage requires default visibility"' failed.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>kcc@google.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>This is r208951 on x86_64 Linux. 

% clang -c z.c
clang-3.5: /home/kcc/llvm/include/llvm/IR/GlobalValue.h:226: void
llvm::GlobalValue::setLinkage(llvm::GlobalValue::LinkageTypes): Assertion
`(!isLocalLinkage(LT) || hasDefaultVisibility()) && "local linkage requires
default visibility"' failed.
8  clang-3.5       0x00000000017bb067
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 855
9  clang-3.5       0x00000000017bc270
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 432
10 clang-3.5       0x00000000017bdea7
clang::CodeGen::CodeGenModule::EmitDeferred() + 183
11 clang-3.5       0x00000000017bdf10 clang::CodeGen::CodeGenModule::Release()
+ 16
12 clang-3.5       0x000000000174c4f1
13 clang-3.5       0x0000000001bf44eb clang::ParseAST(clang::Sema&, bool, bool)
+ 507

reduced from a source file from glibc-2.19

static void
nop () {
}
void __warn_memset_zero_len (void) __attribute__ ( (alias ("nop") ) )
__attribute__ ( (visibility ("hidden") ) );</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>