用于进行gcc测试

源代码在线查看: qualified-id1.c

软件大小: 6330 K
上传用户: yhw002
关键词: gcc 测试
下载地址: 免注册下载 普通下载 VIP

相关代码

				// { dg-do compile }								// Copyright (C) 2003 Free Software Foundation, Inc.				// Contributed by Nathan Sidwell 4 Sep 2003 				// Origin Volker Reichelt reichelt@igpm.rwth-aachen.de								// PR 11922								struct A				{				  template  struct B;				  struct C;				};								template  struct A::B {};								template  void foo()				{				  T::C (); // { dg-error "parsed as a non-type|if a type is meant" "" }				  T::template B(); // { dg-error "parsed as a non-type|if a type is meant" "" }				}								void bar()				{				  foo(); // { dg-error "instantiated" "" }				}							

相关资源