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]

c++/849: gcc internal error stimulated by use of struct timeval



>Number:         849
>Category:       c++
>Synopsis:       gcc internal error stimulated by use of struct timeval
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 19 19:26:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Building2
>Release:        2.96
>Organization:
>Environment:
RedHat 7.0, gcc 2.96
>Description:
gcc internal error #390 stimulated by
reference to struct timeval type
>How-To-Repeat:
] cat t.cc
#define _REENTRANT
#define _GNU_SOURCE

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <time.h>

int main()
{
  struct timeval t;

  gettimeofday(&t, 0);

  return(0);
}

] gcc -g -fpic -c t.cc -o t.o
t.cc: In function `int main ()':
t.cc:11: aggregate `timeval t' has incomplete type and cannot be 
initialized
t.cc:13: Internal error #390.
t.cc:13: Internal compiler error in arg_assoc_type, at 
../gcc/cp/decl2.c:4961
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

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