Mac OS X 10.4.9 for x86 Source Code gcc 实现源代码

源代码在线查看: non-dependent2.c

软件大小: 38649 K
上传用户: liuchuyuan
关键词: Source Code Mac for
下载地址: 免注册下载 普通下载 VIP

相关代码

				// { dg-do compile }								// Copyright (C) 2003 Free Software Foundation, Inc.				// Contributed by Nathan Sidwell 16 Jul 2003 								// A non-dependent field_decl can bind at parse time.								template 				struct Foo {				  int j; // we never see this one.				  int k; // { dg-error "" "" }				  				};								struct Baz 				{				  int j;				  int k; // { dg-error "" "" }				  				};								template 				struct Bar : public Foo, Baz {				  				  int baz () { return j; } // binds to Baz::j				  int foo () { return this->k; } // { dg-error "request for member" "" }				};								int main()				{				  Bar bar;								  bar.baz ();				  bar.foo (); // { dg-error "instantiated" "" }				  				  return 0;				}							

相关资源