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++/15538] Fails to recognize type name


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-19 11:03 -------
This is just a diagnostic problem see what ICC 6.0 says:
pr15538.cc
pr15538.cc(2): error: incomplete type is not allowed
  class A {public: typedef int B; typename D::Q r;};
                                           ^
          detected during:
            instantiation of class "A<D> [with D=H<bool>]" at line 6
            instantiation of class "H<G> [with G=bool]" at line 12

pr15538.cc(4): error: incomplete type is not allowed
      {public: typedef int F; typename C<T>::Q q;};
                                       ^
          detected during:
            instantiation of class "E<T, C> [with T=bool, C=H]" at line 6
            instantiation of class "H<G> [with G=bool]" at line 12

compilation aborted for pr15538.cc (code 2)

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-19 11:03:03
               date|                            |


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


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