{"action":"closed","issue":{"url":"https://api.github.com/repos/dbetz/propeller-gcc/issues/5","repository_url":"https://api.github.com/repos/dbetz/propeller-gcc","labels_url":"https://api.github.com/repos/dbetz/propeller-gcc/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/dbetz/propeller-gcc/issues/5/comments","events_url":"https://api.github.com/repos/dbetz/propeller-gcc/issues/5/events","html_url":"https://github.com/dbetz/propeller-gcc/issues/5","id":130580513,"number":5,"title":"GCC 6.0 bug?","user":{"login":"DavidZemon","id":3068292,"avatar_url":"https://avatars.githubusercontent.com/u/3068292?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidZemon","html_url":"https://github.com/DavidZemon","followers_url":"https://api.github.com/users/DavidZemon/followers","following_url":"https://api.github.com/users/DavidZemon/following{/other_user}","gists_url":"https://api.github.com/users/DavidZemon/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidZemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidZemon/subscriptions","organizations_url":"https://api.github.com/users/DavidZemon/orgs","repos_url":"https://api.github.com/users/DavidZemon/repos","events_url":"https://api.github.com/users/DavidZemon/events{/privacy}","received_events_url":"https://api.github.com/users/DavidZemon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-02T05:32:40Z","updated_at":"2016-02-23T01:50:01Z","closed_at":"2016-02-23T01:50:01Z","body":"I'd like to say it's a bug in 6.0, but it's certainly possible that there's a bug in my code as well. All I know is that build 2408 compiles my code in such a way that it runs correctly, and the latest 6.0 build (from my build server) does not.\r\n\r\nThe code I'm testing is this example:\r\n\r\n```cpp\r\n#include <PropWare/printer/printer.h>\r\n#include <PropWare/filesystem/sd.h>\r\n#include <PropWare/filesystem/fat/fatfilereader.h>\r\n\r\nusing namespace PropWare;\r\n\r\nint main() {\r\n    const SD driver;\r\n    FatFS    filesystem(&driver);\r\n    filesystem.mount();\r\n\r\n    FatFileReader reader(filesystem, \"fat_test.txt\");\r\n    reader.open();\r\n\r\n    while (!reader.eof())\r\n        pwOut << reader.get_char();\r\n\r\n    return 0;\r\n}\r\n```\r\n\r\nI understand that's not much help since it includes a lot of unknowns. I worked through it a bit to try and narrow down what is causing the issue, and here's what I found out:\r\n\r\nThis doesn't work (and by that, I mean nothing is printed to the terminal. nothing at all - even the first \"Hello\" line)\r\n\r\n```cpp\r\n#include <PropWare/printer/printer.h>\r\n#include <PropWare/filesystem/sd.h>\r\n#include <PropWare/filesystem/fat/fatfilereader.h>\r\n\r\nusing namespace PropWare;\r\n\r\nint main() {\r\n    pwOut << \"Hello\\n\";\r\n    const SD driver;\r\n    pwOut << \"Hello\\n\";\r\n    FatFS    filesystem(&driver);\r\n    pwOut << \"Hello\\n\";\r\n\r\n    return 0;\r\n}\r\n```\r\n\r\nAnd this does (all three \"Hello\"s are printed)\r\n\r\n```cpp\r\n#include <PropWare/printer/printer.h>\r\n#include <PropWare/filesystem/sd.h>\r\n#include <PropWare/filesystem/fat/fatfilereader.h>\r\n\r\nusing namespace PropWare;\r\n\r\nint main() {\r\n    pwOut << \"Hello\\n\";\r\n    const SD driver;\r\n    pwOut << \"Hello\\n\";\r\n    //FatFS    filesystem(&driver);\r\n    pwOut << \"Hello\\n\";\r\n\r\n    return 0;\r\n}\r\n```\r\n\r\nI commented out the constructor for both FatFS and Filesystem (parent class to FatFS) such that they were quite trivial, and it didn't help."}}