re PR c++/54310 (Order of operations during overload resolution)
2014-05-13 Paolo Carlini <paolo.carlini@oracle.com> PR c++/54310 * g++.dg/template/pr54310.C: New. From-SVN: r210385
This commit is contained in:
parent
9aa54cc915
commit
af2db4c577
@ -1,3 +1,8 @@
|
||||
2014-05-13 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/54310
|
||||
* g++.dg/template/pr54310.C: New.
|
||||
|
||||
2014-05-13 Nathan Sidwell <nathan@codesourcery.com>
|
||||
Sandra Loosemore <sandra@codesourcery.com>
|
||||
|
||||
|
19
gcc/testsuite/g++.dg/template/pr54310.C
Normal file
19
gcc/testsuite/g++.dg/template/pr54310.C
Normal file
@ -0,0 +1,19 @@
|
||||
// PR c++/54310
|
||||
|
||||
template <typename T>
|
||||
struct meta
|
||||
{
|
||||
typedef typename T::type type;
|
||||
};
|
||||
|
||||
struct S{};
|
||||
|
||||
template <typename T>
|
||||
typename meta<T>::type foo(T, S);
|
||||
|
||||
int foo(int, int);
|
||||
|
||||
int main()
|
||||
{
|
||||
foo(0, 0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user