Your message dated Sun, 11 Apr 2010 14:30:32 +0000
with message-id <e1o0ybe-0008cv...@ravel.debian.org>
and subject line C++ and mudflap packages not built anymore from the gcc-4.1 
source
has caused the Debian Bug report #469512,
regarding Attribute warn_unused_result ignored on function returning union
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
469512: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469512
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: g++-4.1
Version: 4.1.1-21
Severity: normal

Hi,

I work without execptions and want to ensure that error codes that
might be returned by functions will not be ignored. So I added the
attribute warn_unused_result to the function prototype. But with
functions returning an union the attribute is ignored:

------------------------[ foo.c / foo.cc ]----------------------------
union Error { int error; void* val; };
Error foo(void) __attribute__ ((warn_unused_result));
int bar(void) __attribute__ ((warn_unused_result));
void baz(void) { foo(); bar(); }
----------------------------------------------------------------------
% g++ -W -Wall -O2 -c foo.cc
foo.cc: In function 'void baz()':
foo.cc:4: warning: ignoring return value of 'int bar()', declared with 
attribute warn_unused_result
----------------------------------------------------------------------
% gcc -W -Wall -O2 -c foo.c 
foo.c: In function 'baz':
foo.c:4: warning: ignoring return value of 'foo', declared with attribute 
warn_unused_result
foo.c:4: warning: ignoring return value of 'bar', declared with attribute 
warn_unused_result
----------------------------------------------------------------------

MfG
        Goswin

-- System Information:
Debian Release: lenny/sid
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22.2-mrvn
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages g++-4.1 depends on:
ii  gcc-4.1                     4.1.1-21     The GNU C compiler
ii  gcc-4.1-base                4.1.1-21     The GNU Compiler Collection (base 
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libstdc++6-4.1-dev          4.1.1-21     The GNU Standard C++ Library v3 (d

g++-4.1 recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
The C++ and mudflap binary packages are not built anymore from the
gcc-4.1 source package.  Tagging this report as won't fix, and closing
the report.

Please check if the problem is fixed in gcc-4.4 (or gcc-4.5/gcc-snapshot).
If the problem is not fixed, and not yet reported for the new compiler
version(s), open a new report.


--- End Message ---

Reply via email to