search for: templ8

Displaying 7 results from an estimated 7 matches for "templ8".

Did you mean: temple
2012 Sep 27
4
[LLVMdev] Clang bug?
...header that clang fails to compile properly under C++11 with the new standard library (although the code itself doesn't use any C++11-specific syntax), but G++ (4.6-Ubuntu and 4.2-Darwin) compiles it fine: #include <map> using std::map; template<typename K> struct Templ8 { struct Member { typename map<K,Member*>::iterator it; }; typedef typename map<K,Member*>::iterator iterator_type; }; int main() { Templ8<int> test; } This is the command-line: clang++ -stdlib=libc++ -std=c++11 main_...
2012 Sep 28
0
[LLVMdev] Clang bug?
...properly under C++11 with the new standard > library (although the code itself doesn't use any C++11-specific > syntax), but G++ (4.6-Ubuntu and 4.2-Darwin) compiles it fine: > > #include <map> > using std::map; > > template<typename K> > struct Templ8 { > struct Member { > typename map<K,Member*>::iterator it; > }; > typedef typename map<K,Member*>::iterator iterator_type; > }; > > int main() { > Templ8<int> test; > } > > > > This is the...
2012 Sep 28
4
[LLVMdev] Clang bug?
...dard > > library (although the code itself doesn't use any C++11-specific > > syntax), but G++ (4.6-Ubuntu and 4.2-Darwin) compiles it fine: > > > > #include <map> > > using std::map; > > > > template<typename K> > > struct Templ8 { > > struct Member { > > typename map<K,Member*>::iterator it; > > }; > > typedef typename map<K,Member*>::iterator iterator_type; > > }; > > > > int main() { > > Templ8<int> test; > &...
2012 Sep 29
0
[LLVMdev] Clang bug?
...ough the code itself doesn't use any C++11-specific >> > syntax), but G++ (4.6-Ubuntu and 4.2-Darwin) compiles it fine: >> > >> > #include <map> >> > using std::map; >> > >> > template<typename K> >> > struct Templ8 { >> > struct Member { >> > typename map<K,Member*>::iterator it; >> > }; >> > typedef typename map<K,Member*>::iterator iterator_type; >> > }; >> > >> > int main() { >> >...
2012 Sep 29
1
[LLVMdev] Clang bug?
...e any C++11-specific > >> > syntax), but G++ (4.6-Ubuntu and 4.2-Darwin) compiles it fine: > >> > > >> > #include <map> > >> > using std::map; > >> > > >> > template<typename K> > >> > struct Templ8 { > >> > struct Member { > >> > typename map<K,Member*>::iterator it; > >> > }; > >> > typedef typename map<K,Member*>::iterator iterator_type; > >> > }; > >> > > >> >...
2012 Sep 29
0
[LLVMdev] Clang bug?
...#include <type_traits> template<typename T> struct S { static_assert(sizeof(T) == 1, ""); }; bool b = std::is_assignable<S<int>*&, S<int>*>::value; But Adam's code: #include <map> using std::map; template<typename K> struct Templ8 { struct Member { typename map<K,Member*>::iterator it; }; typedef typename map<K,Member*>::iterator iterator_type; }; int main() { Templ8<int> test; } is not giving a diagnostic (-stdlib=libc++ -std=c++11). You seem to be saying...
2012 Sep 29
2
[LLVMdev] Clang bug?
On Fri, Sep 28, 2012 at 6:45 PM, Howard Hinnant <hhinnant at apple.com> wrote: > On Sep 28, 2012, at 5:54 PM, Richard Smith <richard at metafoo.co.uk> wrote: > > > Reduced testcase: > > > > template<typename T> struct A { typedef decltype(T() + 0) type; }; > > template<typename T> struct B { > > struct C { typedef typename