OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [cond.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/8080
2
 
3
// Bug: the transformation in finish_while_stmt_cond produced something
4
// that tsubst_expr handled badly.  Fixed by not doing the transformation
5
// while parsing a template.
6
 
7
class TObject {};
8
 
9
struct TIter {
10
  TObject           *operator()();
11
};
12
 
13
 
14
template
15
void get_root_object(TIter& iobj) {
16
  while ( TObject* pnew_obj = iobj() )
17
    ;
18
}
19
 
20
void foo(TIter& iobj)
21
{
22
  get_root_object(iobj);
23
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.