[Bug 442271] Re: [Karmic] g++ hangs when trying to compile file

Bug Watch Updater 442271 at bugs.launchpad.net
Sun Mar 18 08:58:50 UTC 2012


Launchpad has imported 2 comments from the remote bug at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43765.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2010-04-16T07:29:49+00:00 Matthias Klose wrote:

the following (illegal code) loops and allocates memory until cc1plus
aborts

-Wall gives you some hint, but else no diagnostic is given.

struct SomeType
{
    const char *values[];
};
const char *temp[] = {"607", "612", 0};

SomeType vals[] =
    {
        { values : temp, },
        0
    };

Reply at: https://bugs.launchpad.net/gcc-defaults/+bug/442271/comments/6

------------------------------------------------------------------------
On 2012-03-13T23:40:20+00:00 Pinskia wrote:

Confirmed.

Reply at: https://bugs.launchpad.net/gcc-defaults/+bug/442271/comments/7


** Changed in: gcc-defaults
       Status: New => Confirmed

** Changed in: gcc-defaults
   Importance: Unknown => Low

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/442271

Title:
  [Karmic] g++ hangs when trying to compile file

Status in gcc-defaults:
  Confirmed
Status in “gcc-defaults” package in Ubuntu:
  Triaged

Bug description:
  g++ began to hang after I added the following code (I had been
  experimented with initialization):

  const char * temp[] = {"607", "612", 0};
  	
  	SomeType vals[] =
  	{
  		{
  			values : temp,
  			operator_type : IBD_Equal
  		},
  		0
  	};

  where SomeType:

  struct SomeType
  {
  	char * values[];
  	SomeEnumType e;
  };

  the same things with, for example:

  	SomeType vals[] =
  	{
  		{
  			values : "text",
  			e : SomeEnuValue
  		},
  		0
  	};

  ProblemType: Bug
  Architecture: i386
  Date: Sun Oct  4 17:48:19 2009
  DistroRelease: Ubuntu 9.10
  Package: g++ 4:4.4.1-1ubuntu2
  ProcEnviron:
   PATH=(custom, user)
   LANG=ru_RU.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
  SourcePackage: gcc-defaults
  Uname: Linux 2.6.31-11-generic i686

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc-defaults/+bug/442271/+subscriptions




More information about the foundations-bugs mailing list