This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15341] Type "transformation" in nested templates
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 May 2004 03:37:16 -0000
- Subject: [Bug c++/15341] Type "transformation" in nested templates
- References: <20040508031746.15341.chgros+bugzilla@stanford.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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