代码搜索:declared
找到约 3,220 项符合「declared」的源代码
代码结果 3,220
www.eeworm.com/read/369339/2801075
ss1
.SH
Section 1: Basic Specifications
.PP
As we noted above, names refer to either tokens or nonterminal symbols.
Yacc requires those names which will be
used as token names to be declared as such.
In a
www.eeworm.com/read/366702/2865673
c wunused-8.c
// PR c++/16029
// { dg-options "-Wunused" }
int main ()
{
// We should not see an "unused" warning about "whatever" on the
// next line.
return whatever (); // { dg-error "declared" }
}
www.eeworm.com/read/366702/2866249
c weak1.c
// Test for #pragma weak where the weak alias symbol isn't declared,
// although the symbol it is an alias for is defined in the
// translation unit. Bug 7544.
// Origin: Joseph Myers
www.eeworm.com/read/366702/2868769
c friend50.c
// PR c++/34399
template struct X
{
void foo();
};
struct Y {
template friend void X::X::foo(); // { dg-error "declared as friend" }
};
www.eeworm.com/read/366702/2870603
c template13.c
// { dg-do compile }
// Templates defined outside must be declared inside
namespace bar
{
// trick it to provide some prior declaration
template
void foo(); // { dg-error "definition" }
www.eeworm.com/read/366702/2870626
c template12.c
// { dg-do assemble }
// Templates can be defined outside of the namespace if the have been declared
// inside
namespace bar
{
template
T const foo(T const &);
template const int
www.eeworm.com/read/366702/2871015
c friend4.c
// { dg-do assemble }
// GROUPS passed friends
// do_friend should complain that foo was declared as a friend of
// A before A was defined
struct A; // { dg-error "forward" }
struct B { friend A::fo
www.eeworm.com/read/366702/2872870
m weak-1.m
/* Test for #pragma weak where the weak alias symbol isn't declared,
although the symbol it is an alias for is defined in the
translation unit. Bug 7544. */
/* Origin: Joseph Myers
www.eeworm.com/read/366702/2876093
f90 external_procedures_3.f90
! { dg-do run }
! Tests the fix for PR32926, in which the call to fcn
! in bar would cause an ICE because it had not been referenced
! in the namespace where it was declared.
!
! Contributed by Ralph
www.eeworm.com/read/366702/2880924
c weak-10.c
/* Test for #pragma weak where the weak alias symbol isn't declared,
although the symbol it is an alias for is defined in the
translation unit. Bug 7544. */
/* Origin: Joseph Myers