[Bug c++/44743] New: Parser does not recogize local variable in constant expression for member function pointers

2010-07-01 Thread mschulze at ivs dot cs dot ovgu dot de
: 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

[Bug c++/44743] Parser does not recogize local variable in constant expression for member function pointers

2010-07-01 Thread mschulze at ivs dot cs dot ovgu dot de
--- 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

[Bug c++/44577] New: static local variables in class template methods are not optimized-away if not used

2010-06-18 Thread mschulze at ivs dot cs dot ovgu dot de
: 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

[Bug c++/44577] static local variables in class template methods are not optimized-away if not used

2010-06-18 Thread mschulze at ivs dot cs dot ovgu dot de
--- 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

[Bug c++/44577] static local variables in class template methods are not optimized-away if not used

2010-06-18 Thread mschulze at ivs dot cs dot ovgu dot de
--- 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

[Bug target/34734] attribute((progmem)) not handled properly in C++ for AVRs

2010-06-09 Thread mschulze at ivs dot cs dot ovgu dot de
--- 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