------- Comment #28 from laikechen at gmail dot com  2010-02-09 12:07 -------
(In reply to comment #2)
> Even shorter testcase:
> 
> ==================================
> struct A {};
> 
> template <int A::* p>
> int foo(A* q)
> {
>   return q->*p;
> }
> 
> template <typename T>
> int bar(int T::* p)
> {
>   return foo<p>(0);
> }
> 
> int i = bar<A>(0);
> ==================================
> 
> PR37093.cc: In function 'int foo(A*) [with int A::* p = p]':
> PR37093.cc:7: internal compiler error: in expand_expr_real_1, at expr.c:7270
> Please submit a full bug report, [etc.]
> 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37093

Reply via email to