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

源代码在线查看: constant4.c

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

相关代码

				// { dg-do compile }								// Copyright (C) 2003 Free Software Foundation, Inc.				// Contributed by Nathan Sidwell 31 Jul 2003 								// PR c++/11525 incorrect error about non-constant initalizer								template class X;				template class Y {};												template				void Foo ()				{				  static const unsigned I = X::I;				  				  Y i;				  				  static const unsigned J = X::J;				  				  Y j; // { dg-error "non-constant" "" }				}								struct A 				{				  operator unsigned () const;				};								template  struct X 				{				  enum {I};				  static A const J;				};								void Baz ()				{				  Foo (); // { dg-error "instantiated" "" }				}								  							

相关资源