public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30328]  New: bit-field: unassemblable assembly code
@ 2006-12-29  6:32 s__nakayama at infoseek dot jp
  2007-01-07  1:01 ` [Bug c++/30328] [4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: s__nakayama at infoseek dot jp @ 2006-12-29  6:32 UTC (permalink / raw)
  To: gcc-bugs

gcc produces unassemblable assembly code. 

//testcase:
struct S
{
  signed int a:17;
} x;

typedef typeof (x.a) foo;

template <class T>
T* inc(T* p) { return p+1; }

int main ()
{
  foo x[2] = { 1,2 };
  int y[2] = { 1,2 };
  *inc(x);
  *inc(y);
  return 0;
}

result
$ g++ -S bug.cpp
$ g++ -c bug.s
bug.s: Assembler messages:
bug.s:18: Error: symbol `__Z3incIiEPT_S1_' is already defined

gcc version: 4.2 20061212


-- 
           Summary: bit-field: unassemblable assembly code
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: s__nakayama at infoseek dot jp


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30328


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-03-12  1:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-29  6:32 [Bug c++/30328] New: bit-field: unassemblable assembly code s__nakayama at infoseek dot jp
2007-01-07  1:01 ` [Bug c++/30328] [4.2 Regression] " pinskia at gcc dot gnu dot org
2007-02-19 21:00 ` [Bug c++/30328] [4.2/4.3 " mmitchel at gcc dot gnu dot org
2007-03-11  3:22 ` mmitchel at gcc dot gnu dot org
2007-03-12  0:26 ` mmitchel at gcc dot gnu dot org
2007-03-12  1:32 ` [Bug c++/30328] [4.2 " mmitchel at gcc dot gnu dot org
2007-03-12  1:53 ` mmitchel at gcc dot gnu dot org
2007-03-12  1:53 ` mmitchel at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).