<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 --- - Misleading error message: error: implicit instantiation of undefined template"
   href="http://llvm.org/bugs/show_bug.cgi?id=21080">21080</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Misleading error message: error: implicit instantiation of undefined template
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>ilja.j.honkonen@nasa.gov
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Trying to compile a reduced version of the program at
<a href="https://github.com/nasailja/gensimcell/blob/a342ba0347de2f0d333641a39477de7c2abbe3cb/tests/parallel/one_variable.cpp">https://github.com/nasailja/gensimcell/blob/a342ba0347de2f0d333641a39477de7c2abbe3cb/tests/parallel/one_variable.cpp</a>
produces a very misleading message considering that the correct fix is to just
add #include "array" to the file:

../../source/gensimcell_impl.hpp:626:31: error: implicit instantiation of
undefined template 'std::__1::array<double, 3>'
        typename Variable::data_type data;
                                     ^
../../source/gensimcell.hpp:136:9: note: in instantiation of template class
      'gensimcell::detail::Cell_impl<Optional_Transfer, 1, test_variable2>'
requested here
        public detail::Cell_impl<Transfer_Policy, sizeof...(Variables),
Variables...>
               ^
one_variable.cpp:53:6: note: in instantiation of template class
'gensimcell::Cell<gensimcell::Optional_Transfer,
      test_variable2>' requested here
        a[0].set_transfer_all(true, v2);
            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tuple:69:65:
note: 
      template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TYPE_VIS_ONLY array;
                                                                ^
1 error generated.


A correct looking array (std::...::array) is even mentioned in the error
message. It probably wouldn't be too difficult to give a hint to the user that
array is being used without including the required header...</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>