Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 10 years ago

Language

Compiler

Options

Author

anonymous

over 10 years ago

$
prog.cc: In function 'int main()':
prog.cc:7:12: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
     delete hoge;
            ^
prog.cc:6:11: warning: 'hoge' has incomplete type
     Hoge* hoge;
           ^
prog.cc:3:8: note: forward declaration of 'struct Hoge'
 struct Hoge;
        ^
prog.cc:7:12: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
     delete hoge;
            ^
prog.cc:7:16: warning: 'hoge' is used uninitialized in this function [-Wuninitialized]
     delete hoge;
                ^
compile ok.
Exit Code:
0