<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 --- - Assertion `InitE && "No initialization expression?"' failed."
   href="https://llvm.org/bugs/show_bug.cgi?id=27122">27122</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `InitE && "No initialization expression?"' failed.
          </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>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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rtrieu@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>Kaelyn.Alexi@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat test.cpp
namespace ns {

void Function(int format) { }
void Function(int format, int a) { }

void Function(const int num)
  __attribute__((enable_if(num != 0, "Check num0"), unavailable("Bad num 0")));
void Function(const int num, const int a0)
  __attribute__((enable_if(num != 1, "Check num1"), unavailable("Bad num 1")));

}  // namespace ns

using ns::Function;
void Run() {
  Functioon(0);
}
$ clang -fsyntax-only test.cpp
test.cpp:15:3: error: use of undeclared identifier 'Functioon'; did you mean
      'Function'?
  Functioon(0);
  ^~~~~~~~~
  Function
test.cpp:13:11: note: 'Function' declared here
using ns::Function;
          ^
test.cpp:15:3: error: 'Function' is unavailable: Bad num 1
  Functioon(0);
  ^
test.cpp:8:6: note: 'Function' has been explicitly marked unavailable here
void Function(const int num, const int a0)
     ^
clang-3.5: ../tools/clang/lib/Sema/SemaInit.cpp:7827: ExprResult
clang::Sema::PerformCopyInitialization(const clang::InitializedEntity &,
clang::SourceLocation, ExprResult, bool, bool): Assertion `InitE && "No
initialization expression?"' failed.

Functioon is typo-corrected to Function.  However, with the using declaration
and overloaded Function, the LookupResult typo-corrects to "void Function(const
int num, const int a0)" and causes the assertion failure.</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>