This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15341] Type "transformation" in nested templates


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-08 03:37 -------
This is invalid code.
The diagnostic problem is fixed for 3.4.0
pr15341.cc:30: error: non-template `Concept' used as template
pr15341.cc:30: error: (use `manager<pair<t1, t2> >::template Concept' to indicate that it is a 
template)
pr15341.cc:30: error: declaration does not declare anything
pr15341.cc: In function `int main(int, char**)':
pr15341.cc:39: error: 'struct test1<int, int, trivial_manager<main(int, char**)::pair_type> >' has no 
member named 'c'

To fix the code use the following instead of line 30:
  typename manager_test::template Concept<manager_t> c;

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |diagnostic
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]