: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mschulze at ivs dot cs dot ovgu dot de
GCC build triplet: i586-redhat-linux
GCC host triplet: i586-redhat-linux
GCC target triplet: i586-redhat
--- Comment #2 from mschulze at ivs dot cs dot ovgu dot de 2010-07-01
12:57 ---
However, the error message is little bit misleading, because fnc is exactly of
the requested type but it is a local variable, IMO.
The question is, is the code standard conform or not?
--
http
: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mschulze at ivs dot cs dot ovgu dot de
GCC build triplet: i586-redhat-linux
GCC host triplet: i586-redhat-linux
GCC target triplet: i586
--- Comment #1 from mschulze at ivs dot cs dot ovgu dot de 2010-06-18
10:11 ---
(In reply to comment #0)
IMO, in the following test program the variable s within the class template
may
be optimized-away in every case. Although, the variable is used as an argument
for a function
--- Comment #3 from mschulze at ivs dot cs dot ovgu dot de 2010-06-18
12:01 ---
IMO, this is not a static member of a class itself, even it is defined inside
of a member function, thus I think it has not to have external linkage.
--
mschulze at ivs dot cs dot ovgu dot de changed
--- Comment #4 from mschulze at ivs dot cs dot ovgu dot de 2010-06-09
09:16 ---
I found a way to place data in program memory for C++ without producing the
annoying warnings. The trick is omiting __attribute__((__progmem__)) and
instead always use __attribute__((section