<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 --- - problem with a method having a default value for an std::pair argument (works with g++)"
   href="http://llvm.org/bugs/show_bug.cgi?id=16661">16661</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>problem with a method having a default value for an std::pair argument (works with g++)
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>slayoo@igf.fuw.edu.pl
          </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>Hi,

Here's a short example:

slayoo@skua:~$ clang++ --version
Debian clang version 3.4-1 (trunk) (based on LLVM 3.4)
Target: x86_64-pc-linux-gnu
Thread model: posix



slayoo@skua:~$ cat test.cpp 
#include <utility>
struct c
{
  static void f(
    std::pair<const double*, const int*> = std::pair<const double*, const
int*>(0,0)
  ) {}
};



slayoo@skua:~$ clang++ -c test.cpp 
test.cpp:5:79: error: expected ')'
    std::pair<const double*, const int*> = std::pair<const double*, const
int*>(0,0)
                                                                              ^
test.cpp:4:16: note: to match this '('
  static void f(
               ^
test.cpp:5:67: error: expected '>'
    std::pair<const double*, const int*> = std::pair<const double*, const
int*>(0,0)
                                                                  ^
2 errors generated.


slayoo@skua:~$ g++ --version
g++ (Debian 4.7.3-5) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



slayoo@skua:~$ g++ -c test.cpp && echo OK
OK



HTH,
Sylwester</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>