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]

Internal compiler error in gcc 2.96 (i386-redhat-linux)




	Hello,


	here is a bug report for gcc:

* gcc -v output:

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)

(I hope this goes here and not to RedHat directly :-)


* Command that triggers the bug:

g++ -c a.cc


* Compiler output:

a.cc:27: parse error at end of input
a.cc:27: Internal compiler error in pop_binding, at ../gcc/cp/decl.c:
1213
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


* Do not know the options were used to build the compiler.


* The source

----------------- a.cc -----------------------------------------------

namespace G
{
  class A
  {
  public:
    void	f(void) const;
  };
}

namespace G
{
  void A::f(void) const
  {
    for(;;)
    {
      for(int i=0; i<100; ++i)
	if(i<99)
	{

	}


  }
  
}
----------------------------------------------------------------------


	Happy debugging

	Andre

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