~ubuntu-branches/ubuntu/maverick/aspectc++/maverick

« back to all changes in this revision

Viewing changes to Puma/tests/bug343/test2.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
class C;
 
2
 
 
3
template <typename T>
 
4
struct TC {
 
5
  T _t;
 
6
  typedef typename T::FOO BLA;
 
7
};
 
8
 
 
9
typedef TC<C> TCC; // Puma already instantiates here
 
10
 
 
11
struct C { typedef int FOO; };
 
12
 
 
13
void x (TCC::BLA bla) { // g++ instantiates here (C is complete!)
 
14
  bla += 42;
 
15
}