Date: Fri, 15 Nov 2019 15:47:56 +0300
Confirm me that the clang HEAD 10.0.0 has a bug or I missed something.
The following demonstrative program instead of to output
f( 10 )
generates a compiler error when the clang HEAD 10.0.0 compiler is used.
#include <iostream>
namespace N1
{
void f( int x ) { std::cout << "f( " << x << " )\n"; }
}
using N1::f;
namespace N1
{
void f( int x = 10 );
}
int main()
{
f();
}
With nest regards,
Vlad from Moscow
You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or http://ru.stackoverflow.com
The following demonstrative program instead of to output
f( 10 )
generates a compiler error when the clang HEAD 10.0.0 compiler is used.
#include <iostream>
namespace N1
{
void f( int x ) { std::cout << "f( " << x << " )\n"; }
}
using N1::f;
namespace N1
{
void f( int x = 10 );
}
int main()
{
f();
}
With nest regards,
Vlad from Moscow
You can meet me at http://cpp.forum24.ru/ or www.stackoverflow.com or http://ru.stackoverflow.com
Received on 2019-11-15 06:50:17