public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26129]  New: g++.dg/init/ctor4.C:11: warning: non-static reference 'int& bar::a' in class without a constructor
@ 2006-02-06 15:00 danglin at gcc dot gnu dot org
  2006-02-06 15:02 ` [Bug c++/26129] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: danglin at gcc dot gnu dot org @ 2006-02-06 15:00 UTC (permalink / raw)
  To: gcc-bugs

Executing on host: /mnt/gnu/gcc-3.3/objdir/gcc/testsuite/g++/../../g++
-B/mnt/gn
u/gcc-3.3/objdir/gcc/testsuite/g++/../../
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++
.dg/init/ctor4.C  -nostdinc++
-I/mnt/gnu/gcc-3.3/objdir/hppa2.0w-hp-hpux11.11/li
bstdc++-v3/include/hppa2.0w-hp-hpux11.11
-I/mnt/gnu/gcc-3.3/objdir/hppa2.0w-hp-h
pux11.11/libstdc++-v3/include -I/mnt/gnu/gcc-3.3/gcc/libstdc++-v3/libsupc++
-I/m
nt/gnu/gcc-3.3/gcc/libstdc++-v3/include/backward
-I/mnt/gnu/gcc-3.3/gcc/libstdc+
+-v3/testsuite -fmessage-length=0   -ansi -pedantic-errors -Wno-long-long  -S 
-
o ctor4.s    (timeout = 300)
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.dg/init/ctor4.C:11: warning: non-static
r
eference 'int& bar::a' in class without a constructor
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.dg/init/ctor4.C: In constructor
'bar::bar
()':
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.dg/init/ctor4.C:9: error: uninitialized
r
eference member 'bar::a'
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.dg/init/ctor4.C: In function 'int
main(in
t, char**)':
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.dg/init/ctor4.C:19: note: synthesized
met
hod 'bar::bar()' first required here
compiler exited with status 1
output is:
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.dg/init/ctor4.C:11: warning: non-static
r
eference 'int& bar::a' in class without a constructor
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.dg/init/ctor4.C: In constructor
'bar::bar
()':
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.dg/init/ctor4.C:9: error: uninitialized
r
eference member 'bar::a'
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.dg/init/ctor4.C: In function 'int
main(in
t, char**)':
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.dg/init/ctor4.C:19: note: synthesized
met
hod 'bar::bar()' first required here

PASS: g++.dg/init/ctor4.C  (test for errors, line 9)
PASS: g++.dg/init/ctor4.C  (test for errors, line 19)
FAIL: g++.dg/init/ctor4.C (test for excess errors)
Excess errors:
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.dg/init/ctor4.C:11: warning: non-static
r
eference 'int& bar::a' in class without a constructor

This is as new fail in the last couple of days.  The same fail
also occurs in these tests:

FAIL: g++.old-deja/g++.jason/overload34.C (test for excess errors)
Excess errors:
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.old-deja/g++.jason/overload34.C:5:
warnin
g: non-static reference 'int& X::flag' in class without a constructor

FAIL: g++.old-deja/g++.mike/p11110.C (test for excess errors)
Excess errors:
/mnt/gnu/gcc-3.3/gcc/gcc/testsuite/g++.old-deja/g++.mike/p11110.C:16: warning:
n
on-static reference 'conatiner& user::_c' in class without a constructor


-- 
           Summary: g++.dg/init/ctor4.C:11: warning: non-static reference
                    'int& bar::a' in class without a constructor
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa2.0w-hp-hpux11.11
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


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


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

* [Bug c++/26129] g++.dg/init/ctor4.C:11: warning: non-static reference 'int& bar::a' in class without a constructor
  2006-02-06 15:00 [Bug c++/26129] New: g++.dg/init/ctor4.C:11: warning: non-static reference 'int& bar::a' in class without a constructor danglin at gcc dot gnu dot org
@ 2006-02-06 15:02 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-06 15:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-06 15:02 -------
This is a dup of bug 26114.

*** This bug has been marked as a duplicate of 26114 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2006-02-06 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06 15:00 [Bug c++/26129] New: g++.dg/init/ctor4.C:11: warning: non-static reference 'int& bar::a' in class without a constructor danglin at gcc dot gnu dot org
2006-02-06 15:02 ` [Bug c++/26129] " pinskia 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).