1 // { dg-do assemble } 2 // GROUPS passed operators 3 // opr-new file 4 // From: flisakow@cae.wisc.edu 5 // Date: Thu, 1 Sep 94 18:21:09 CDT 6 // Subject: g++ bug? 7 // Message-ID: <9409012321.AA05346@hprisc-19.cae.wisc.edu> 8 9 #include <stdio.h> 10 11 12 struct fcell { 13 FILE *fd; 14 struct fcell *next; 15 }; 16 17 18 class FStack { 19 public: 20 struct fcell *top; FStack()21 FStack() { top = NULL ; } 22 inline void push(FILE * fd1, int line_num, char *fname = NULL) { 23 struct fcell *tmp = new struct fcell; 24 tmp->fd = fd1; 25 tmp->next = top; 26 top = tmp ; 27 } 28 }; 29