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]
Other format: [Raw text]

[Bug debug/33537] [4.0/4.1/4.2/4.3 regression] C++ arguments passed by invisible reference have wrong type



------- Comment #1 from bangerth at dealii dot org  2007-09-23 17:07 -------
I get the same output
  (gdb) ptype foo
  type = int (Obj &)
for all compilers I tried here, i.e. gcc versions 2.95, 3.2.3, 3.3.6, 3.4.6
and 4.1.2. This is with gdb 6.5.

On the other hand, when using icc10 and Sun Studio, I get this:
  (gdb) ptype foo
  type = int (Obj)
which appears correct. So I can confirm that this appears to be a bug.

I'm not sure yet about the regression status: Can you re-check whether you
indeed got the correct results with pre-4.0 versions of gcc?

W.


-- 

bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at dealii dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-09-23 17:07:02
               date|                            |


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


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